diff options
Version Circle cache keys for easy flushing
Diffstat (limited to '.circleci')
-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 |