Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep the cache before uploading it #246

Merged
merged 1 commit into from
May 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 --stamp

before_cache:
- cargo sweep --file

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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rust-lang/cargo#6972 means that this does some extra work, but it's still faster than the test build so doesn't really matter at this point.


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