Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
use build stages for Travis CI (mochajs#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 226ee3d commit 15bd831
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .travis.yml
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 15bd831

Please sign in to comment.