File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Javascript Node CircleCI 2.0 configuration file
2- #
3- # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4- #
51version : 2
62jobs :
73 build :
8- docker :
9- # specify the version you desire here
4+ docker : &docker_image
105 - image : circleci/node:7.10
116
12- # Specify service dependencies here if necessary
13- # CircleCI maintains a library of pre-built images
14- # documented at https://circleci.com/docs/2.0/circleci-images/
15- # - image: circleci/mongo:3.4.4
16-
177 steps :
188 - checkout
19-
20- # Download and cache dependencies
219 - restore_cache :
2210 keys :
2311 - v1-dependencies-{{ checksum "package.json" }}
24- # fallback to using the latest cache if no exact match is found
2512 - v1-dependencies-
2613
27- - run : npm install
28-
29- - save_cache :
30- paths :
31- - node_modules
32- key : v1-dependencies-{{ checksum "package.json" }}
33-
34- # run tests!
3514 - run :
3615 name : Test
37- command : npm run test:coverage
16+ command : |
17+ npm install
18+ npm run test:coverage
19+
3820 - run :
3921 name : Codecov
4022 command : CODECOV_TOKEN=${CODECOV_TOKEN} npm run codecov
4123 when : always
24+
25+ - save_cache :
26+ paths :
27+ - node_modules
28+ key : v1-dependencies-{{ checksum "package.json" }}
29+
30+ workflows :
31+ version : 2
32+ build-and-deploy :
33+ jobs :
34+ - build
You can’t perform that action at this time.
0 commit comments