Version Circle cache keys for easy flushing

feature/default_network_editable
bitpshr 6 years ago
parent d24b5b76fd
commit a319c8ce42
  1. 26
      .circleci/config.yml

@ -102,15 +102,15 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: 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 # fallback to using the latest cache if no exact match is found
- dependency-cache- - v1-dependency-cache-
- run: - run:
name: Install npm 6 + deps via npm name: Install npm 6 + deps via npm
command: | command: |
sudo npm install -g npm@6.1.0 && npm install sudo npm install -g npm@6.1.0 && npm install
- save_cache: - save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }} key: v1-dependency-cache-{{ checksum "package-lock.json" }}
paths: paths:
- node_modules - node_modules
@ -120,12 +120,12 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-firefox- key: v1-dependency-cache-firefox-
- run: - run:
name: Download Firefox If needed name: Download Firefox If needed
command: ./.circleci/scripts/firefox-download.sh command: ./.circleci/scripts/firefox-download.sh
- save_cache: - save_cache:
key: dependency-cache-firefox- key: v1-dependency-cache-firefox-
paths: paths:
- firefox - firefox
@ -135,7 +135,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }} key: v1-dependency-cache-{{ checksum "package-lock.json" }}
- run: - run:
name: build:dist name: build:dist
command: npm run dist command: npm run dist
@ -143,7 +143,7 @@ jobs:
name: build:debug name: build:debug
command: find dist/ -type f -exec md5sum {} \; | sort -k 2 command: find dist/ -type f -exec md5sum {} \; | sort -k 2
- save_cache: - save_cache:
key: build-cache-{{ .Revision }} key: v1-build-cache-{{ .Revision }}
paths: paths:
- dist - dist
- builds - builds
@ -154,12 +154,12 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }} key: v1-dependency-cache-{{ checksum "package-lock.json" }}
- run: - run:
name: build:dist name: build:dist
command: npm run doc command: npm run doc
- save_cache: - save_cache:
key: docs-cache-{{ .Revision }} key: v1-docs-cache-{{ .Revision }}
paths: paths:
- docs/jsdoc - docs/jsdoc
@ -169,7 +169,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }} key: v1-dependency-cache-{{ checksum "package-lock.json" }}
- run: - run:
name: Get Scss Cache key name: Get Scss Cache key
# this allows us to checksum against a whole directory # this allows us to checksum against a whole directory
@ -178,7 +178,7 @@ jobs:
name: Build for integration tests name: Build for integration tests
command: npm run test:integration:build command: npm run test:integration:build
- save_cache: - save_cache:
key: scss-cache-{{ checksum "scss_checksum" }} key: v1-scss-cache-{{ checksum "scss_checksum" }}
paths: paths:
- ui/app/css/output - ui/app/css/output
@ -286,12 +286,12 @@ jobs:
- restore_cache: - restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }} key: dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache: - restore_cache:
key: build-cache-{{ .Revision }} key: v1-build-cache-{{ .Revision }}
- run: - run:
name: Test name: Test
command: npm run test:screens command: npm run test:screens
- save_cache: - save_cache:
key: job-screens-{{ .Revision }} key: v1-job-screens-{{ .Revision }}
paths: paths:
- test-artifacts - test-artifacts

Loading…
Cancel
Save