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: set -e
- rust: nightly
env: ALLOW_FAILURES=true
script:
- |
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,22 +61,31 @@ 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
set -e - rust: nightly
if [[ "$TARGET" ]] env: ALLOW_FAILURES=true # FIXME remove this live after #437 is resolved
then script: cargo doc
rustup target add $TARGET
cargo check --all --exclude tokio-tls --target $TARGET allow_failures:
cargo check --tests --all --exclude tokio-tls --target $TARGET - rust: nightly
else env: ALLOW_FAILURES=true
cargo test --all --no-fail-fast
# Disable these tests for now as they are buggy script: |
# set -e
# cargo test --features unstable-futures if [[ "$TARGET" ]]
# cargo test --manifest-path tokio-threadpool/Cargo.toml --features unstable-futures then
# cargo test --manifest-path tokio-reactor/Cargo.toml --features unstable-futures rustup target add $TARGET
fi cargo check --all --exclude tokio-tls --target $TARGET
cargo check --tests --all --exclude tokio-tls --target $TARGET
else
cargo test --all --no-fail-fast
# Disable these tests for now as they are buggy
#
# cargo test --features unstable-futures
# cargo test --manifest-path tokio-threadpool/Cargo.toml --features unstable-futures
# cargo test --manifest-path tokio-reactor/Cargo.toml --features unstable-futures
fi
before_deploy: before_deploy:
- cargo doc --all --no-deps - cargo doc --all --no-deps