Skip to content

Commit

Permalink
Ensure to bail after first fail in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Aug 13, 2019
1 parent e042f06 commit ea121e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -41,6 +41,9 @@ before_script:
# More info on below line: https://www.davidpashley.com/articles/writing-robust-shell-scripts/#idm5413512
- set -e

script:
- npm test -- -b # Bail after first fail

# Ensure to fail build if deploy fails, Travis doesn't ensure that: https://github.com/travis-ci/travis-ci/issues/921
before_deploy:
# Remove eventual old npm logs
Expand All @@ -65,15 +68,15 @@ jobs:
script:
- npm run prettier-check-updated
- npm run lint-updated
- npm test
- npm test -- -b

# master branch and version tags
- name: 'Lint, Unit Tests - Linux - Node.js v12'
if: type != pull_request
node_js: 12
script:
- npm run lint
- npm test
- npm test -- -b

- name: 'Unit Tests - Windows - Node.js v12'
os: windows
Expand Down

0 comments on commit ea121e7

Please sign in to comment.