This repository was archived by the owner on Feb 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +77
-3
lines changed Expand file tree Collapse file tree 2 files changed +77
-3
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ defaults : &defaults
4+ working_directory : ~/parse-function
5+ docker :
6+ - image : circleci/node:6
7+
8+ restore_modules_cache : &restore_modules_cache
9+ restore_cache :
10+ keys :
11+ - parse-function-{{ checksum "yarn.lock" }}
12+ # fallback to using the latest cache if no exact match is found
13+ - parse-function-
14+
15+
16+ jobs :
17+ install :
18+ << : *defaults
19+ steps :
20+ - checkout
21+ - *restore_modules_cache
22+ - run :
23+ name : Updating NPM
24+ command : yarn global add npm@latest
25+ - run :
26+ name : Installing Dependencies
27+ command : npx -p node@8 yarn install
28+ - save_cache :
29+ key : parse-function-{{ checksum "yarn.lock" }}
30+ paths : node_modules
31+ - run :
32+ name : Remove node_modules to cleanup workspace
33+ command : rm -rf node_modules
34+
35+ test :
36+ << : *defaults
37+ steps :
38+ - checkout
39+ - *restore_modules_cache
40+ - run :
41+ name : Running tests and checks
42+ command : yarn test
43+ - run :
44+ name : Sending test coverage to CodeCov
45+ command : bash <(curl -s https://codecov.io/bash)
46+
47+ release :
48+ << : *defaults
49+ steps :
50+ - checkout
51+ - *restore_modules_cache
52+ - run :
53+ name : Building dist files
54+ command : npx -p node@8 yarn build
55+ - run :
56+ name : Releasing and publishing
57+ command : npx -p node@8 new-release
58+
59+ workflows :
60+ version : 2
61+ automated :
62+ jobs :
63+ - install
64+ - test :
65+ requires :
66+ - install
67+ - release :
68+ requires :
69+ - test
70+ filters :
71+ branches :
72+ only : master
73+ context : org-global
Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ before_install:
2121 - export CIRCLECI="true"
2222 - yarn global add npx
2323
24- install : npx -p node@8 yarn install
24+ install :
25+ - npx -p node@8 yarn install
2526
26- script : yarn test
27+ script :
28+ - yarn test
2729
2830after_success :
2931 - bash <(curl -s https://codecov.io/bash)
30- - npx -p node@8 new-release
3132
3233branches :
3334 except :
You can’t perform that action at this time.
0 commit comments