Skip to content

Commit

Permalink
Travis CI: Enable deploy to continue when tests we consider informati…
Browse files Browse the repository at this point in the history
…onal fail (pull #993)

To address issue #992, In .travis.yml:
* add initial allow_failures flag and apply it to regression test coverage report job.
* only set environment variables where necessary.
* reorganize jobs for readability.
  • Loading branch information
sh0ji authored and mcking65 committed Feb 27, 2019
1 parent 707163f commit 089049b
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ git:
stages:
- Test
- Deploy

jobs:
fast_finish: true
allow_failures:
- env: ALLOW_FAILURE=true

include:
- stage: Test
name: AVA Regression Tests
script: ava -c 1 test/tests
- stage: Test
name: Regression Tests Coverage Report
script: node test/util/report.js
- stage: Test
name: CSS Linting
script: npm run lint:css
Expand All @@ -29,6 +28,16 @@ jobs:
- stage: Test
name: HTML Linting
script: npm run vnu-jar

- stage: Test
name: AVA Regression Tests
script: ava -c 1 test/tests
env: TEST_WAIT_TIME=1000
- stage: Test
name: Regression Tests Coverage Report
script: node test/util/report.js
env: ALLOW_FAILURE=true

- stage: Deploy
if: branch = master AND type != pull_request
script: skip
Expand All @@ -39,6 +48,3 @@ jobs:
script: /tmp/deploy/travis-deploy.sh
on:
branch: master

env:
- TEST_WAIT_TIME=1000

0 comments on commit 089049b

Please sign in to comment.