ci: improve travis run times (#793)

This commit is contained in:
Roman 2018-12-17 23:18:27 +03:00 committed by Toby Lawrence
parent 36f1a19ac8
commit af85cb3430

View File

@ -1,9 +1,6 @@
--- ---
language: rust language: rust
sudo: false sudo: false
cache:
- apt
- cargo
addons: addons:
apt: apt:
packages: packages:
@ -36,16 +33,8 @@ matrix:
# This runs TSAN against nightly and allows failures to propagate up. # This runs TSAN against nightly and allows failures to propagate up.
- rust: nightly-2018-11-18 - rust: nightly-2018-11-18
env: TSAN=yes env: TSAN=yes
script: |
allow_failures:
- rust: nightly
env: ALLOW_FAILURES=true
script:
- |
set -e set -e
if [[ "$TRAVIS_RUST_VERSION" == nightly && "$TSAN" == yes ]]
then
# Make sure the benchmarks compile # Make sure the benchmarks compile
cargo build --benches --all cargo build --benches --all
@ -72,8 +61,17 @@ script:
# Run thread sanitizer # Run thread sanitizer
RUSTFLAGS="-Z sanitizer=thread" \ RUSTFLAGS="-Z sanitizer=thread" \
cargo test -p tokio-threadpool --tests --target x86_64-unknown-linux-gnu cargo test -p tokio-threadpool --tests --target x86_64-unknown-linux-gnu
fi
- | # This runs cargo +nightly doc
- rust: nightly
env: ALLOW_FAILURES=true # FIXME remove this live after #437 is resolved
script: cargo doc
allow_failures:
- rust: nightly
env: ALLOW_FAILURES=true
script: |
set -e set -e
if [[ "$TARGET" ]] if [[ "$TARGET" ]]
then then