From 0d5d42abcabd06e758e784075245c6711392f40e Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Wed, 15 May 2019 18:52:22 +0200 Subject: [PATCH] Update travis config * Separate out individual build jobs for faster wall-clock testing * Fix clippy not actually denying warnings (excluded examples because these are currently failing and have non-trivial fixes) * Add build job that checks --no-default-features works * Add build job that checks for intra-doc-resolution failures (excluded tide because of bugs in re-exports with the intra-doc feature) --- .travis.yml | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7a662d4f7..cc4c46432 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,30 @@ language: rust -rust: - - nightly-2019-05-09 - -before_script: | - rustup component add rustfmt clippy -script: | - cargo fmt --all -- --check && - cargo clippy --all --all-features -- -D clippy::all && - cargo build --no-default-features --verbose && - cargo build --all --all-features --verbose && - cargo test --all --all-features --verbose +rust: nightly-2019-05-09 cache: cargo + +matrix: + include: + - name: cargo doc + env: [CACHE_NAME=docs] + script: + - RUSTDOCFLAGS=-Dwarnings + cargo doc --all --all-features --no-deps --exclude tide + + - name: cargo fmt + cache: false + before_script: rustup component add rustfmt + script: cargo fmt --all -- --check + + - name: cargo clippy + env: [CACHE_NAME=clippy] + before_script: rustup component add clippy + script: cargo clippy --all --all-targets --exclude examples -- -Dwarnings + + - name: cargo build --no-default-features + env: [CACHE_NAME=no-default-features] + script: + - cargo build --manifest-path tide/Cargo.toml --no-default-features + - cargo build --manifest-path tide-core/Cargo.toml --no-default-features + + - name: cargo test + script: cargo test --all --verbose