forked from visionmedia/bytes.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (32 loc) · 806 Bytes
/
Copy path.travis.yml
File metadata and controls
32 lines (32 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: node_js
node_js:
- "0.8"
- "0.10"
- "0.12"
- "1.8"
- "2.4"
- "3.3"
- "4.8"
- "5.12"
- "6.12"
- "7.10"
- "8.4"
sudo: false
cache:
directories:
- node_modules
before_install:
# Skip updating shrinkwrap / lock
- "npm config set shrinkwrap false"
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev nyc"
# Update Node.js modules
- "test ! -d node_modules || npm prune"
- "test ! -d node_modules || npm rebuild"
script:
# Run test script, depending on nyc install
- "test ! -z $(npm -ps ls nyc) || npm test"
- "test -z $(npm -ps ls nyc) || npm run-script test-ci"
after_script:
# Report coverage
- "test -d .nyc_output && npm install coveralls@2 && nyc report --reporter=text-lcov | coveralls"