diff options
author | bitpshr <mail@bitpshr.net> | 2018-07-19 19:57:41 +0800 |
---|---|---|
committer | bitpshr <mail@bitpshr.net> | 2018-07-19 20:04:17 +0800 |
commit | a319c8ce4218429239673f458bb38a4ce776a2f0 (patch) | |
tree | 9d036a2bf1125b31c0d477dcf859865e9e118e90 | |
parent | d24b5b76fdd02c47942cbc20b471718bd7bda91d (diff) | |
download | tangerine-wallet-browser-a319c8ce4218429239673f458bb38a4ce776a2f0.tar.gz tangerine-wallet-browser-a319c8ce4218429239673f458bb38a4ce776a2f0.tar.zst tangerine-wallet-browser-a319c8ce4218429239673f458bb38a4ce776a2f0.zip |
Version Circle cache keys for easy flushing
-rw-r--r-- | .circleci/config.yml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 7063f3113..9ca8b4521 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,15 +102,15 @@ jobs: - checkout - restore_cache: keys: - - dependency-cache-{{ checksum "package-lock.json" }} + - v1-dependency-cache-{{ checksum "package-lock.json" }} # fallback to using the latest cache if no exact match is found - - dependency-cache- + - v1-dependency-cache- - run: name: Install npm 6 + deps via npm command: | sudo npm install -g npm@6.1.0 && npm install - save_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: v1-dependency-cache-{{ checksum "package-lock.json" }} paths: - node_modules @@ -120,12 +120,12 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-firefox- + key: v1-dependency-cache-firefox- - run: name: Download Firefox If needed command: ./.circleci/scripts/firefox-download.sh - save_cache: - key: dependency-cache-firefox- + key: v1-dependency-cache-firefox- paths: - firefox @@ -135,7 +135,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: v1-dependency-cache-{{ checksum "package-lock.json" }} - run: name: build:dist command: npm run dist @@ -143,7 +143,7 @@ jobs: name: build:debug command: find dist/ -type f -exec md5sum {} \; | sort -k 2 - save_cache: - key: build-cache-{{ .Revision }} + key: v1-build-cache-{{ .Revision }} paths: - dist - builds @@ -154,12 +154,12 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: v1-dependency-cache-{{ checksum "package-lock.json" }} - run: name: build:dist command: npm run doc - save_cache: - key: docs-cache-{{ .Revision }} + key: v1-docs-cache-{{ .Revision }} paths: - docs/jsdoc @@ -169,7 +169,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: v1-dependency-cache-{{ checksum "package-lock.json" }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -178,7 +178,7 @@ jobs: name: Build for integration tests command: npm run test:integration:build - save_cache: - key: scss-cache-{{ checksum "scss_checksum" }} + key: v1-scss-cache-{{ checksum "scss_checksum" }} paths: - ui/app/css/output @@ -286,12 +286,12 @@ jobs: - restore_cache: key: dependency-cache-{{ checksum "package-lock.json" }} - restore_cache: - key: build-cache-{{ .Revision }} + key: v1-build-cache-{{ .Revision }} - run: name: Test command: npm run test:screens - save_cache: - key: job-screens-{{ .Revision }} + key: v1-job-screens-{{ .Revision }} paths: - test-artifacts |