Skip to content

Commit 6629390

Browse files
committed
Sweep the cache before uploading it
1 parent 011d0db commit 6629390

File tree

1 file changed

+37
-9
lines changed

1 file changed

+37
-9
lines changed

.travis.yml

+37-9
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,57 @@ language: rust
22
rust: nightly-2019-05-09
33
cache: cargo
44

5+
before_script:
6+
- >
7+
[[ "$(cargo-sweep --version)" == "cargo-sweep 0.4.1" ]]
8+
|| cargo install cargo-sweep
9+
- cargo sweep -s
10+
11+
before_cache:
12+
- cargo sweep -f
13+
514
matrix:
615
include:
716
- name: cargo doc
817
env: [CACHE_NAME=docs]
918
script:
10-
- RUSTDOCFLAGS=-Dwarnings
11-
cargo doc --all --all-features --no-deps --exclude tide
19+
- RUSTDOCFLAGS=-Dwarnings cargo doc
20+
-Zmtime-on-use
21+
--all --all-features
22+
--exclude tide
23+
--no-deps
1224

1325
- name: cargo fmt
1426
cache: false
15-
before_script: rustup component add rustfmt
16-
script: cargo fmt --all -- --check
27+
before_script: []
28+
install:
29+
- rustup component add rustfmt
30+
script:
31+
- cargo fmt --all -- --check
1732

1833
- name: cargo clippy
1934
env: [CACHE_NAME=clippy]
20-
before_script: rustup component add clippy
21-
script: cargo clippy --all --all-targets --exclude examples -- -Dwarnings
35+
install:
36+
- rustup component add clippy
37+
script:
38+
- cargo clippy
39+
-Zmtime-on-use
40+
--all --all-targets
41+
--exclude examples
42+
-- -Dwarnings
2243

2344
- name: cargo build --no-default-features
2445
env: [CACHE_NAME=no-default-features]
2546
script:
26-
- cargo build --manifest-path tide/Cargo.toml --no-default-features
27-
- cargo build --manifest-path tide-core/Cargo.toml --no-default-features
47+
- cargo build
48+
-Zmtime-on-use
49+
--manifest-path tide-core/Cargo.toml
50+
--no-default-features
51+
- cargo build
52+
-Zmtime-on-use
53+
--manifest-path tide/Cargo.toml
54+
--no-default-features
2855

2956
- name: cargo test
30-
script: cargo test --all --verbose
57+
script:
58+
- cargo test -Zmtime-on-use --all --verbose

0 commit comments

Comments
 (0)