Skip to content

Commit 9bc71be

Browse files
committed
Update travis build phases
1 parent 5927f0b commit 9bc71be

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.travis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
language: node_js
22

3+
# https://github.com/nodejs/LTS
34
node_js:
4-
- "stable"
5-
- "4"
6-
- "iojs"
7-
- "0.12"
8-
- "0.10"
5+
- '7'
6+
- '6'
7+
- '4'
8+
- '0.12'
9+
10+
git:
11+
depth: 5
12+
13+
cache:
14+
directories:
15+
- ~/.npm
916

1017
before_install:
1118
- npm config set spin false --global
1219

1320
script:
14-
- npm run lint && npm run check && (if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run cover:lcov; else npm run testonly; fi)
21+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run lint && npm run check && npm run cover:lcov; else npm run testonly; fi
1522

1623
after_success:
1724
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi

0 commit comments

Comments
 (0)