|
|
|
@ -102,15 +102,15 @@ jobs: |
|
|
|
|
- checkout |
|
|
|
|
- restore_cache: |
|
|
|
|
keys: |
|
|
|
|
- v1-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
- dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
|
- v1-dependency-cache- |
|
|
|
|
- dependency-cache- |
|
|
|
|
- run: |
|
|
|
|
name: Install npm 6 + deps via npm |
|
|
|
|
command: | |
|
|
|
|
sudo npm install -g npm@6.1.0 && npm install |
|
|
|
|
- save_cache: |
|
|
|
|
key: v1-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
paths: |
|
|
|
|
- node_modules |
|
|
|
|
|
|
|
|
@ -120,12 +120,12 @@ jobs: |
|
|
|
|
steps: |
|
|
|
|
- checkout |
|
|
|
|
- restore_cache: |
|
|
|
|
key: v1-dependency-cache-firefox- |
|
|
|
|
key: dependency-cache-firefox- |
|
|
|
|
- run: |
|
|
|
|
name: Download Firefox If needed |
|
|
|
|
command: ./.circleci/scripts/firefox-download.sh |
|
|
|
|
- save_cache: |
|
|
|
|
key: v1-dependency-cache-firefox- |
|
|
|
|
key: dependency-cache-firefox- |
|
|
|
|
paths: |
|
|
|
|
- firefox |
|
|
|
|
|
|
|
|
@ -135,7 +135,7 @@ jobs: |
|
|
|
|
steps: |
|
|
|
|
- checkout |
|
|
|
|
- restore_cache: |
|
|
|
|
key: v1-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
key: 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: v1-build-cache-{{ .Revision }} |
|
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
|
paths: |
|
|
|
|
- dist |
|
|
|
|
- builds |
|
|
|
@ -154,12 +154,12 @@ jobs: |
|
|
|
|
steps: |
|
|
|
|
- checkout |
|
|
|
|
- restore_cache: |
|
|
|
|
key: v1-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
- run: |
|
|
|
|
name: build:dist |
|
|
|
|
command: npm run doc |
|
|
|
|
- save_cache: |
|
|
|
|
key: v1-docs-cache-{{ .Revision }} |
|
|
|
|
key: docs-cache-{{ .Revision }} |
|
|
|
|
paths: |
|
|
|
|
- docs/jsdoc |
|
|
|
|
|
|
|
|
@ -169,7 +169,7 @@ jobs: |
|
|
|
|
steps: |
|
|
|
|
- checkout |
|
|
|
|
- restore_cache: |
|
|
|
|
key: v1-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
|
key: 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: v1-scss-cache-{{ checksum "scss_checksum" }} |
|
|
|
|
key: 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: v1-build-cache-{{ .Revision }} |
|
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
|
- run: |
|
|
|
|
name: Test |
|
|
|
|
command: npm run test:screens |
|
|
|
|
- save_cache: |
|
|
|
|
key: v1-job-screens-{{ .Revision }} |
|
|
|
|
key: job-screens-{{ .Revision }} |
|
|
|
|
paths: |
|
|
|
|
- test-artifacts |
|
|
|
|
|
|
|
|
@ -448,4 +448,4 @@ jobs: |
|
|
|
|
steps: |
|
|
|
|
- run: |
|
|
|
|
name: All Tests Passed |
|
|
|
|
command: echo 'weew - everything passed!' |
|
|
|
|
command: echo 'weew - everything passed!' |