forked from jshttp/mime-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (26 loc) · 810 Bytes
/
.travis.yml
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
language: node_js
node_js:
- "0.6"
- "0.8"
- "0.10"
- "0.12"
- "1.0"
- "1.5"
sudo: false
before_install:
# Remove all non-test dependencies
- npm rm --save-dev bluebird
- npm rm --save-dev co
- npm rm --save-dev cogent
- npm rm --save-dev csv-parse
- npm rm --save-dev gnode
- npm rm --save-dev raw-body
- npm rm --save-dev stream-to-array
# Setup Node.js version-specific dependencies
- test $TRAVIS_NODE_VERSION != '0.6' || npm rm --save-dev istanbul
- test $TRAVIS_NODE_VERSION != '0.8' || npm install -g npm@1.2.8000
script:
- "test $TRAVIS_NODE_VERSION != '0.6' || npm test"
- "test $TRAVIS_NODE_VERSION = '0.6' || npm run-script test-travis"
after_script:
- "test $TRAVIS_NODE_VERSION != '0.6' && npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"