diff options
author | Bruno Barbieri <bruno.barbieri@consensys.net> | 2018-07-06 11:26:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 11:26:12 +0800 |
commit | 816b3a9d111c535fa60a0364e3d6f1c5c43bbb16 (patch) | |
tree | 96a76df2c8fe89ada0bfebb1a30ea3a3b9b0ff5f /.circleci | |
parent | 170d05d2e6074b73b3bc8f3493c99e3ef2d73cb6 (diff) | |
download | tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.tar tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.tar.gz tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.tar.bz2 tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.tar.lz tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.tar.xz tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.tar.zst tangerine-wallet-browser-816b3a9d111c535fa60a0364e3d6f1c5c43bbb16.zip |
use package-lock only for the initial restore
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index c643b72cc..9b4c7597b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -109,6 +109,10 @@ jobs: key: dependency-cache-{{ checksum "package-lock.json" }} paths: - node_modules + - save_cache: + key: dependency-cache-{{ .Revision }} + paths: + - node_modules prep-deps-firefox: docker: @@ -129,7 +133,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: build:dist command: npm run dist @@ -148,7 +152,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: build:dist command: npm run doc @@ -163,7 +167,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -182,7 +186,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Test command: npm run lint @@ -193,7 +197,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Test command: npx nsp check @@ -204,7 +208,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -225,7 +229,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -241,7 +245,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -262,7 +266,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -278,7 +282,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -295,7 +299,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - restore_cache: @@ -322,7 +326,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - restore_cache: @@ -345,7 +349,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: test:coverage command: npm run test:coverage @@ -363,7 +367,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -382,7 +386,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -406,7 +410,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -425,7 +429,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory |