Skip to content

Commit 59dceb9

Browse files
committed
Use travis_terminate to fast fail
Workaround for travis-ci/travis-ci#1066
1 parent c0daa6f commit 59dceb9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ matrix:
3030
ALT=i686-unknown-linux-gnu
3131
rust: 1.31.0
3232
script:
33-
- rustup toolchain install nightly
34-
- cargo +nightly generate-lockfile -Z minimal-versions
35-
- cargo -V
36-
- cargo test --features=deny-warnings
33+
- rustup toolchain install nightly || travis_terminate 1
34+
- cargo +nightly generate-lockfile -Z minimal-versions || travis_terminate 1
35+
- cargo -V || travis_terminate 1
36+
- cargo test --features=deny-warnings || travis_terminate 1
3737
if: branch != master OR type = pull_request
3838

3939
- env: TARGET=x86_64-unknown-linux-gnu
@@ -42,9 +42,9 @@ matrix:
4242
install:
4343
- 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
4444
script:
45-
- cargo test --features=deny-warnings
46-
- cargo doc --no-deps
47-
- (cd src/doc && mdbook build --dest-dir ../../target/doc)
45+
- cargo test --features=deny-warnings || travis_terminate 1
46+
- cargo doc --no-deps || travis_terminate 1
47+
- (cd src/doc && mdbook build --dest-dir ../../target/doc) || travis_terminate 1
4848
if: branch != master OR type = pull_request
4949

5050
exclude:

0 commit comments

Comments
 (0)