mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-31 13:52:39 +00:00
ci: improve travis run times (#793)
This commit is contained in:
parent
36f1a19ac8
commit
af85cb3430
26
.travis.yml
26
.travis.yml
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user