File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
+ os :
3
+ - linux
2
4
node_js :
3
5
- " 12"
4
6
- " 10"
@@ -12,3 +14,21 @@ cache:
12
14
- node_modules
13
15
after_success :
14
16
- npm run coveralls
17
+ before_install :
18
+ - ' case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
19
+ - ' nvm install-latest-npm'
20
+ install :
21
+ - ' if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
22
+ script :
23
+ - ' if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
24
+ - ' if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
25
+ sudo : false
26
+ env :
27
+ - TEST=true
28
+ matrix :
29
+ fast_finish : true
30
+ include :
31
+ - node_js : " lts/*"
32
+ env : PRETEST=true
33
+ allow_failures :
34
+ - os : osx
Original file line number Diff line number Diff line change 10
10
"coveralls" : " cat ./reports/lcov.info | coveralls" ,
11
11
"lint" : " eslint ." ,
12
12
"pretest" : " npm run lint" ,
13
- "test" : " jest --coverage" ,
13
+ "test" : " npm run tests-only --" ,
14
+ "tests-only" : " jest --coverage" ,
14
15
"test:watch" : " npm test -- --watch"
15
16
},
16
17
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments