Skip to content

Commit

Permalink
Use travis_terminate to fast fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jan 10, 2019
1 parent c0daa6f commit 59dceb9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ matrix:
ALT=i686-unknown-linux-gnu
rust: 1.31.0
script:
- rustup toolchain install nightly
- cargo +nightly generate-lockfile -Z minimal-versions
- cargo -V
- cargo test --features=deny-warnings
- rustup toolchain install nightly || travis_terminate 1
- cargo +nightly generate-lockfile -Z minimal-versions || travis_terminate 1
- cargo -V || travis_terminate 1
- cargo test --features=deny-warnings || travis_terminate 1
if: branch != master OR type = pull_request

- env: TARGET=x86_64-unknown-linux-gnu
Expand All @@ -42,9 +42,9 @@ matrix:
install:
- travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.1.7/mdbook-v0.1.7-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin
script:
- cargo test --features=deny-warnings
- cargo doc --no-deps
- (cd src/doc && mdbook build --dest-dir ../../target/doc)
- cargo test --features=deny-warnings || travis_terminate 1
- cargo doc --no-deps || travis_terminate 1
- (cd src/doc && mdbook build --dest-dir ../../target/doc) || travis_terminate 1
if: branch != master OR type = pull_request

exclude:
Expand Down

0 comments on commit 59dceb9

Please sign in to comment.