aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-26 01:23:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-01 01:32:43 +0800
commita66bb7889a55a59c8ac8558c43b6884193a4292e (patch)
tree011c1f6436fdad07634d7534c179959e5fdf1b5c
parentadfba06e856d4a86d4b0276f1e59551f77772927 (diff)
downloaddexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.tar
dexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.tar.gz
dexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.tar.bz2
dexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.tar.lz
dexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.tar.xz
dexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.tar.zst
dexon-sol-tools-a66bb7889a55a59c8ac8558c43b6884193a4292e.zip
Try to cache dependencies
-rw-r--r--.circleci/config.yml27
1 files changed, 12 insertions, 15 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index ff17eb54c..295ea799a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -11,29 +11,26 @@ jobs:
- checkout
- run: echo 'export PATH=$HOME/CIRCLE_PROJECT_REPONAME/node_modules/.bin:$PATH' >> $BASH_ENV
- restore_cache:
- key: dependency-cache-{{ checksum "package.json" }}
+ name: Restore Yarn Package Cache
+ keys:
+ - yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
+ - yarn-packages-{{ .Branch }}
+ - yarn-packages-master
+ - yarn-packages-
- run:
name: yarn
- command: yarn --frozen-lockfile
+ command: yarn --frozen-lockfile install
- save_cache:
- key: dependency-cache-{{ checksum "package.json" }}
+ name: Save Yarn Package Cache
+ key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- - ./node_modules
+ - node_modules/
- run: node ./node_modules/lerna/bin/lerna.js bootstrap
- run: yarn build
- save_cache:
key: repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo
- test-installation:
- docker:
- - image: circleci/node:6.12
- working_directory: ~/repo
- steps:
- - restore_cache:
- keys:
- - repo-{{ .Environment.CIRCLE_SHA1 }}
- - run: yarn test:installation
test-contract-wrappers:
docker:
- image: circleci/node:6.12
@@ -106,7 +103,7 @@ jobs:
key: coverage-metacoin-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo/packages/metacoin/coverage/lcov.info
- static_tests:
+ static-tests:
working_directory: ~/repo
docker:
- image: circleci/node:6.12
@@ -172,7 +169,7 @@ workflows:
- test-rest:
requires:
- build
- - static_tests:
+ - static-tests:
requires:
- build
- submit-coverage: