Skip to content

Commit

Permalink
Sweep the cache before uploading it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed May 20, 2019
1 parent 011d0db commit 6629390
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,57 @@ language: rust
rust: nightly-2019-05-09
cache: cargo

before_script:
- >
[[ "$(cargo-sweep --version)" == "cargo-sweep 0.4.1" ]]
|| cargo install cargo-sweep
- cargo sweep -s

before_cache:
- cargo sweep -f

matrix:
include:
- name: cargo doc
env: [CACHE_NAME=docs]
script:
- RUSTDOCFLAGS=-Dwarnings
cargo doc --all --all-features --no-deps --exclude tide
- RUSTDOCFLAGS=-Dwarnings cargo doc
-Zmtime-on-use
--all --all-features
--exclude tide
--no-deps

- name: cargo fmt
cache: false
before_script: rustup component add rustfmt
script: cargo fmt --all -- --check
before_script: []
install:
- 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
install:
- rustup component add clippy
script:
- cargo clippy
-Zmtime-on-use
--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
- cargo build
-Zmtime-on-use
--manifest-path tide-core/Cargo.toml
--no-default-features
- cargo build
-Zmtime-on-use
--manifest-path tide/Cargo.toml
--no-default-features

- name: cargo test
script: cargo test --all --verbose
script:
- cargo test -Zmtime-on-use --all --verbose

0 comments on commit 6629390

Please sign in to comment.