File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,30 @@ language: node_js
2
2
sudo : false
3
3
4
4
node_js :
5
+ # - "0.8" - disabled unless jscs has 0.8 support
5
6
- " 0.10"
6
7
- " 0.12"
7
- - " iojs"
8
+ - " v4"
9
+ - " v5"
8
10
9
11
matrix :
10
12
fast_finish : true
11
13
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
+
12
20
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
14
24
15
25
after_success :
26
+ # calculate coverage only once
16
27
- |
17
- if [ "${TRAVIS_NODE_VERSION}" == "0.10 " ]; then
28
+ if [ "${TRAVIS_NODE_VERSION}" == "0.12 " ]; then
18
29
npm i istanbul istanbul-coveralls
19
30
istanbul cover --report lcovonly ./node_modules/.bin/_mocha
20
31
istanbul-coveralls && echo "Coverage data was sent to coveralls!"
You can’t perform that action at this time.
0 commit comments