Skip to content

Commit 842dcb5

Browse files
committed
Chore: add more nodes to travis: 0.8, 4 and 5
1 parent 42c642a commit 842dcb5

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.travis.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,30 @@ language: node_js
22
sudo: false
33

44
node_js:
5+
# - "0.8" - disabled unless jscs has 0.8 support
56
- "0.10"
67
- "0.12"
7-
- "iojs"
8+
- "v4"
9+
- "v5"
810

911
matrix:
1012
fast_finish: true
1113

14+
before_install:
15+
# 0.8 has npm-1.2 that doesn't support caret (^) operator
16+
- |
17+
[[ $(npm -v) < "2.0" ]] && npm i -g npm@latest-2 || true
18+
- npm --version
19+
1220
before_script:
13-
- ln -s ../ ./node_modules/jscs-jsdoc
21+
# v5 don't need that symlink for some reason (npm3?)
22+
- |
23+
[ -d ./node_modules/jscs-jsdoc ] || ln -s ../ ./node_modules/jscs-jsdoc
1424
1525
after_success:
26+
# calculate coverage only once
1627
- |
17-
if [ "${TRAVIS_NODE_VERSION}" == "0.10" ]; then
28+
if [ "${TRAVIS_NODE_VERSION}" == "0.12" ]; then
1829
npm i istanbul istanbul-coveralls
1930
istanbul cover --report lcovonly ./node_modules/.bin/_mocha
2031
istanbul-coveralls && echo "Coverage data was sent to coveralls!"

0 commit comments

Comments
 (0)