This repository was archived by the owner on Apr 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +806
-12
lines changed
Expand file tree Collapse file tree 2 files changed +806
-12
lines changed Original file line number Diff line number Diff line change 11language : node_js
22sudo : false
33node_js :
4- - " 6"
4+ - 6
5+
56cache :
67 directories :
78 - $HOME/.npm
9+ - $HOME/.yarn-cache
10+
811env :
912 global :
10- - BIN=" node" ISTANBUL=false
11- - secure : " XOINlYZG3DYXq5agQXvkad2MfnOO/+z40fn37RKfNuxNI5veBK7tPRcCIQ998o+NyVTpyd3NZhqkowCxAL8bp4HJ81SesRKQSaXoSzgV7CnloxLxcduiiRJ6lnxFGgCbpqyLxZHWr0mQugcLhs5nhiZ5Dnw6dZxYX/oKKvOomZA="
13+ - BIN=node ISTANBUL=false
14+ - secure : XOINlYZG3DYXq5agQXvkad2MfnOO/+z40fn37RKfNuxNI5veBK7tPRcCIQ998o+NyVTpyd3NZhqkowCxAL8bp4HJ81SesRKQSaXoSzgV7CnloxLxcduiiRJ6lnxFGgCbpqyLxZHWr0mQugcLhs5nhiZ5Dnw6dZxYX/oKKvOomZA=
1215 matrix :
1316 -
1417 - ISTANBUL=true
15- - BIN="phantomjs"
18+ - BIN=phantomjs
19+
1620matrix :
1721 include :
18- - node_js : " 4 "
22+ - node_js : 4
1923 env :
24+
2025git :
2126 depth : 10
27+
2228branches :
2329 only :
2430 - master
31+
2532before_install :
26- - " nvm use $TRAVIS_NODE_VERSION"
27- - " npm set loglevel error"
28- - " npm set progress false"
29- - " npm i -g npm@\" ^2.0.0\" "
33+ # Use exact Node version.
34+ - nvm use $TRAVIS_NODE_VERSION
35+
36+ # Setup package managers.
37+ - npm set loglevel error
38+ - npm set progress false
39+ - npm i -g yarn
40+ - yarn -V
41+
42+ install :
43+ # Install packages.
44+ - yarn
45+
3046script :
31- - " [ $ISTANBUL == false ] || (istanbul cover -x \" **/vendor/**\" --report lcovonly ./test/test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage) || true"
32- - " [ $ISTANBUL == true ] || cd ./test"
33- - " [ $ISTANBUL == true ] || $BIN ./test.js"
47+ - |
48+ if [ $ISTANBUL = true ]; then
49+ istanbul cover -x "**/vendor/**" --report lcovonly ./test/test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage
50+ else
51+ cd ./test
52+ $BIN ./test.js
53+ fi
You can’t perform that action at this time.
0 commit comments