Skip to content

Commit

Permalink
travis: avoid recompiling crater multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Mar 20, 2018
1 parent c4a24cc commit 1696939
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rust:

env:
global:
- RUSTFLAGS=-Dwarnings
# Versions known to work with pinned nightly.
- CLIPPY_VERSION=0.0.180
- RUSTFMT_VERSION=0.3.6
Expand All @@ -26,10 +27,6 @@ before_script:
cargo install-update -i "rustfmt-nightly:$RUSTFMT_VERSION"
fi
script:
- |
RUSTFLAGS=-Dwarnings cargo build &&
cargo test
- |
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || RUSTFLAGS=-Dwarnings cargo fmt -- --write-mode diff
- |
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || RUSTFLAGS=-Dwarnings cargo clippy
- cargo build && cargo test
- [[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo fmt -- --write-mode diff
- [[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo clippy

0 comments on commit 1696939

Please sign in to comment.