File tree Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 1
- general :
2
- artifacts :
3
- - " ./coverage "
1
+ machine :
2
+ environment :
3
+ NO_WATCH_TESTS : 1
4
4
5
5
machine :
6
- node :
7
- version : 4.7.0
6
+ environment :
7
+ PATH : " ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin "
8
8
9
9
dependencies :
10
10
pre :
11
- - npm install -g yarn
11
+ - case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=4 ;; 1) NODE_VERSION=7 ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION
12
12
override :
13
- - yarn install
14
- post :
13
+ - yarn
15
14
- yarn link || true && yarn link webpack
15
+ cache_directories :
16
+ - ~/.cache/yarn
16
17
17
18
test :
18
- pre :
19
- - npm run travis:lint
20
19
override :
21
- - npm run travis:test :
22
- parallel : true
23
- files :
24
- - test/ConfigTestCases.test.js
25
- - test/TestCases.test.js
26
- - test/Stats.test.js
27
- - test/**/*.test.js
20
+ - node -v
21
+ - yarn --version
22
+ - yarn run circleci:lint
23
+ - yarn run circleci:test
Original file line number Diff line number Diff line change 94
94
"travis:benchmark" : " npm run benchmark" ,
95
95
"appveyor:test" : " node --max_old_space_size=4096 node_modules\\ mocha\\ bin\\ mocha --harmony test/*.test.js" ,
96
96
"appveyor:benchmark" : " npm run benchmark" ,
97
+ "circleci:test" : " node --max_old_space_size=4096 node_modules/mocha/bin/mocha --harmony test/*.test.js" ,
98
+ "circleci:lint" : " npm run lint-files && npm run nsp" ,
97
99
"build:examples" : " cd examples && node buildAll.js" ,
98
100
"pretest" : " npm run lint-files" ,
99
101
"lint-files" : " npm run lint && npm run beautify-lint" ,
You can’t perform that action at this time.
0 commit comments