Skip to content

Commit 35dac3e

Browse files
outsiderisboneskull
authored andcommitted
use build stages for Travis CI (#3302)
see https://docs.travis-ci.com/user/build-stages/
1 parent 1701335 commit 35dac3e

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

‎.travis.yml‎

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,37 @@ language: node_js
66

77
matrix:
88
fast_finish: true
9+
10+
before_install: scripts/travis-before-install.sh
11+
12+
before_script: scripts/travis-before-script.sh
13+
14+
jobs:
915
include:
10-
- node_js: '9'
16+
- stage: lint
17+
node_js: '8'
18+
env: TARGET=lint
19+
script: npm start $TARGET
20+
- stage: test
21+
node_js: '9'
1122
env: TARGET=test.node COVERAGE=true
23+
script: npm start $TARGET
1224
- node_js: '8'
1325
env: TARGET=test.node
26+
script: npm start $TARGET
1427
- node_js: '6'
1528
env: TARGET=test.node
29+
script: npm start $TARGET
1630
- node_js: '4'
1731
env: TARGET=test.node
18-
- node_js: '8'
19-
env: TARGET=lint
32+
script: npm start $TARGET
2033
- node_js: '8'
2134
env: TARGET=test.browser
35+
script: npm start $TARGET
2236

23-
before_install: scripts/travis-before-install.sh
24-
25-
before_script: scripts/travis-before-script.sh
26-
27-
script: npm start $TARGET
37+
stages:
38+
- lint
39+
- test
2840

2941
after_success: npm start coveralls
3042

0 commit comments

Comments
 (0)