Skip to content

Commit

Permalink
Use Travis Build stages (pull #851)
Browse files Browse the repository at this point in the history
For issue #848, implement travis stages so linting and HTML validation are in separate jobs that run in parallel and show up on the checks page of a PR.
  • Loading branch information
nschonni authored and mcking65 committed Aug 31, 2018
1 parent 1379511 commit e1288aa
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ node_js:
git:
depth: 3

before_deploy: scripts/travis-before_deploy.sh

deploy:
provider: script
skip_cleanup: true
script: /tmp/deploy/travis-deploy.sh
on:
branch: master
stages:
- Test
- Deploy
jobs:
include:
- stage: Test
name: JS Linting
script: npm run lint
- stage: Test
name: HTML Linting
script: npm run vnu-jar
- stage: Deploy
if: branch = master AND type != pull_request
script: skip
before_deploy: scripts/travis-before_deploy.sh
deploy:
provider: script
skip_cleanup: true
script: /tmp/deploy/travis-deploy.sh
on:
branch: master

0 comments on commit e1288aa

Please sign in to comment.