ci: improve travis run times
---
language: rust
sudo: false
-cache:
- - apt
- - cargo
addons:
apt:
packages:
@@ -36,16 +33,8 @@ matrix:
# This runs TSAN against nightly and allows failures to propagate up.
- rust: nightly-2018-11-18
env: TSAN=yes
-
- allow_failures:
- - rust: nightly
- env: ALLOW_FAILURES=true
-
-script:
- - |
+ script: |
set -e
- if [[ "$TRAVIS_RUST_VERSION" == nightly && "$TSAN" == yes ]]
- then
# Make sure the benchmarks compile
cargo build --benches --all
@@ -72,8 +61,17 @@ script:
# Run thread sanitizer
RUSTFLAGS="-Z sanitizer=thread" \
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
if [[ "$TARGET" ]]
then
