Added Revision to the cache key in the circleci config

This commit is contained in:
Natalia 2018-07-24 17:02:14 -07:00
parent aac3f29b9c
commit fffbb787db
1 changed files with 20 additions and 21 deletions

View File

@ -101,14 +101,13 @@ jobs:
steps:
- checkout
- restore_cache:
keys:
- dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Install npm 6 + deps via npm
command: |
sudo npm install -g npm@6.1.0 && npm install
- save_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
paths:
- node_modules
@ -120,7 +119,7 @@ jobs:
- restore_cache:
key: dependency-cache-firefox-
- run:
name: Download Firefox If needed
name: Download Firefox
command: ./.circleci/scripts/firefox-download.sh
- save_cache:
key: dependency-cache-firefox-
@ -133,7 +132,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: build:dist
command: npm run dist
@ -152,7 +151,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: build:dist
command: npm run doc
@ -167,7 +166,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@ -186,7 +185,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Test
command: npm run lint
@ -197,7 +196,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Test
command: npx nsp check
@ -208,7 +207,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@ -229,7 +228,7 @@ jobs:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@ -245,7 +244,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@ -266,7 +265,7 @@ jobs:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@ -282,7 +281,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@ -299,7 +298,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- restore_cache:
@ -326,7 +325,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- restore_cache:
key: build-cache-{{ .Revision }}
- restore_cache:
@ -349,7 +348,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: test:coverage
command: npm run test:coverage
@ -367,7 +366,7 @@ jobs:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@ -386,7 +385,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@ -410,7 +409,7 @@ jobs:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@ -429,7 +428,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-
key: dependency-cache-{{ .Revision }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory