Browse Source

add cache

circleci-project-setup
Louis Dutoit 6 years ago
parent
commit
0da7121fd0
  1. 23
      .circleci/config.yml

23
.circleci/config.yml

@ -12,12 +12,15 @@ jobs:
- restore_cache : - restore_cache :
keys : keys :
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
- save_cache:
paths:
- ./node_modules
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
lint: lint:
docker: *shared_docker docker: *shared_docker
steps: steps:
- checkout # check out the code in the project directory
- run: yarn global add node-gyp && yarn install
- checkout # check out the code in the project director
- restore_cache : - restore_cache :
keys : keys :
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
@ -27,8 +30,7 @@ jobs:
test: test:
docker: *shared_docker docker: *shared_docker
steps: steps:
- checkout # check out the code in the project directory
- run: yarn global add node-gyp && yarn install
- checkout # check out the code in the project director
- restore_cache : - restore_cache :
keys : keys :
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
@ -51,7 +53,6 @@ jobs:
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
steps: steps:
- checkout - checkout
- run: yarn global add node-gyp && yarn install
- restore_cache: - restore_cache:
keys: keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
@ -63,6 +64,12 @@ workflows:
build_test: build_test:
jobs : jobs :
- build - build
- lint
- test
- e2etest
- lint:
requires:
- build
- test:
requires:
- build
- e2etest:
requires:
- build
Loading…
Cancel
Save