diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-02-07 01:34:50 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-02-07 01:36:39 +0100 |
commit | 34640282671956eb00bd2700cbca6aaab7faee0e (patch) | |
tree | ad2e15e0d984799de505af9a4381b9791a076e3a /.travis.yml | |
parent | 1a61e8b1d5fe6bcfa72404df8c581bce86079d96 (diff) |
Travis: Fail only if there are failed {builds, tests, benchs}
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 2236b017..fd3a6f6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,20 +36,24 @@ script: travis_cargo_run_in() { [[ -d "$1" ]] && cd "$1" && - travis-cargo build && - travis-cargo test && - travis-cargo bench && - travis-cargo --only stable doc && - cd - + { + travis-cargo build && + travis-cargo test && + travis-cargo bench && + travis-cargo --only stable doc && + cd - + } || exit 1 } [[ $(changes_in "doc") ]] && echo "Changes in ./doc are not build by CI" for d in $(find -name "Cargo.toml" | grep -vE "^.$"); do dir=$(dirname $d) - changes_in $dir && \ - echo -e "\nRunning in $d\n" && \ - travis_cargo_run_in $dir + { + changes_in $dir && \ + echo -e "\nRunning in $d\n" && \ + travis_cargo_run_in $dir + } || true done addons: |