aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml107
1 files changed, 54 insertions, 53 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index bc40c9a7c..6d4bf270c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -97,43 +97,44 @@ workflows:
jobs:
prep-deps-npm:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ keys:
+ - v1.0-dependency-cache-{{ checksum "package-lock.json" }}
+ # fallback to using the latest cache if no exact match is found
+ - v1.0-dependency-cache-
- run:
- name: Install deps via npm
- command: npm install
+ name: Install npm 6 + deps via npm
+ command: |
+ sudo npm install -g npm@6.1.0 && npm install --no-save
- save_cache:
- key: dependency-cache-{{ checksum "package-lock.json" }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
paths:
- node_modules
- - save_cache:
- key: dependency-cache-{{ .Revision }}
- paths:
- - node_modules
-
prep-deps-firefox:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
+ - restore_cache:
+ key: v1.0-dependency-cache-firefox-
- run:
- name: Download Firefox
+ name: Download Firefox If needed
command: ./.circleci/scripts/firefox-download.sh
- save_cache:
- key: dependency-cache-firefox-{{ .Revision }}
+ key: v1.0-dependency-cache-firefox-
paths:
- firefox
prep-build:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: build:dist
command: npm run dist
@@ -148,11 +149,11 @@ jobs:
prep-docs:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: build:dist
command: npm run doc
@@ -163,11 +164,11 @@ jobs:
prep-scss:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@@ -182,33 +183,33 @@ jobs:
test-lint:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Test
command: npm run lint
test-deps:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Test
command: npx nsp check
test-e2e-chrome:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@@ -220,16 +221,16 @@ jobs:
test-e2e-firefox:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-firefox-{{ .Revision }}
+ key: v1.0-dependency-cache-firefox-
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@@ -241,11 +242,11 @@ jobs:
test-e2e-beta-chrome:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@@ -257,16 +258,16 @@ jobs:
test-e2e-beta-firefox:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-firefox-{{ .Revision }}
+ key: v1.0-dependency-cache-firefox-
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@@ -278,11 +279,11 @@ jobs:
job-screens:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- run:
@@ -295,11 +296,11 @@ jobs:
job-publish-prerelease:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- restore_cache:
@@ -322,11 +323,11 @@ jobs:
job-publish-release:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- restore_cache:
@@ -345,11 +346,11 @@ jobs:
test-unit:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: test:coverage
command: npm run test:coverage
@@ -358,16 +359,16 @@ jobs:
environment:
browsers: '["Firefox"]'
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-firefox-{{ .Revision }}
+ key: v1.0-dependency-cache-firefox-
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@@ -382,11 +383,11 @@ jobs:
environment:
browsers: '["Chrome"]'
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@@ -401,16 +402,16 @@ jobs:
environment:
browsers: '["Firefox"]'
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-firefox-{{ .Revision }}
+ key: v1.0-dependency-cache-firefox-
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@@ -425,11 +426,11 @@ jobs:
environment:
browsers: '["Chrome"]'
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
- key: dependency-cache-{{ .Revision }}
+ key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
@@ -442,8 +443,8 @@ jobs:
all-tests-pass:
docker:
- - image: circleci/node:8-browsers
+ - image: circleci/node:8.11.3-browsers
steps:
- run:
name: All Tests Passed
- command: echo 'weew - everything passed!'
+ command: echo 'weew - everything passed!' \ No newline at end of file