Skip to content

Commit

Permalink
Update travis config
Browse files Browse the repository at this point in the history
 * 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)
  • Loading branch information
Nemo157 committed May 19, 2019
1 parent e8ca93f commit 0d5d42a
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0d5d42a

Please sign in to comment.