Skip to content

Commit

Permalink
use build stages for Travis CI (#3302)
Browse files Browse the repository at this point in the history
  • Loading branch information
outsideris authored and boneskull committed Apr 4, 2018
1 parent 1701335 commit 35dac3e
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,37 @@ language: node_js

matrix:
fast_finish: true

before_install: scripts/travis-before-install.sh

before_script: scripts/travis-before-script.sh

jobs:
include:
- node_js: '9'
- stage: lint
node_js: '8'
env: TARGET=lint
script: npm start $TARGET
- stage: test
node_js: '9'
env: TARGET=test.node COVERAGE=true
script: npm start $TARGET
- node_js: '8'
env: TARGET=test.node
script: npm start $TARGET
- node_js: '6'
env: TARGET=test.node
script: npm start $TARGET
- node_js: '4'
env: TARGET=test.node
- node_js: '8'
env: TARGET=lint
script: npm start $TARGET
- node_js: '8'
env: TARGET=test.browser
script: npm start $TARGET

before_install: scripts/travis-before-install.sh

before_script: scripts/travis-before-script.sh

script: npm start $TARGET
stages:
- lint
- test

after_success: npm start coveralls

Expand Down

0 comments on commit 35dac3e

Please sign in to comment.