Skip to content

Commit 741dec1

Browse files
committed
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)
1 parent 943d492 commit 741dec1

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

.travis.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
language: rust
2-
rust:
3-
- nightly-2019-05-09
4-
5-
before_script: |
6-
rustup component add rustfmt clippy
7-
script: |
8-
cargo fmt --all -- --check &&
9-
cargo clippy --all --all-features -- -D clippy::all &&
10-
cargo build --no-default-features --verbose &&
11-
cargo build --all --all-features --verbose &&
12-
cargo test --all --all-features --verbose
2+
rust: nightly-2019-05-09
133
cache: cargo
4+
5+
matrix:
6+
include:
7+
- name: cargo doc
8+
env: [CACHE_NAME=docs]
9+
script:
10+
- RUSTDOCFLAGS=-Dwarnings
11+
cargo doc --all --all-features --no-deps --exclude tide
12+
13+
- name: cargo fmt
14+
cache: false
15+
before_script: rustup component add rustfmt
16+
script: cargo fmt --all -- --check
17+
18+
- name: cargo clippy
19+
env: [CACHE_NAME=clippy]
20+
before_script: rustup component add clippy
21+
script: cargo clippy --all --all-targets --exclude examples -- -Dwarnings
22+
23+
- name: cargo build --no-default-features
24+
env: [CACHE_NAME=no-default-features]
25+
script:
26+
- cargo build --manifest-path tide/Cargo.toml --no-default-features
27+
- cargo build --manifest-path tide-core/Cargo.toml --no-default-features
28+
29+
- name: cargo test
30+
script: cargo test --all --verbose

0 commit comments

Comments
 (0)