Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit cc255a1

Browse files
committed
Be clever about caching binaries
This better work, or I'll just remove the condition!
1 parent ff3540e commit cc255a1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ rust:
88
matrix:
99
include:
1010
- rust: nightly-2017-10-09
11-
env: CLIPPY=YESPLEASE
11+
env: CLIPPY_VERS="0.0.165"
1212
before_script: |
13-
cargo +nightly-2017-10-09 install clippy --vers "0.0.165"
13+
[[ "$(cargo +nightly-2017-10-09 clippy --version)" != "$CLIPPY_VERS" ]] && \
14+
cargo +nightly-2017-10-09 install clippy --vers "$CLIPPY_VERS" --force
1415
script: |
1516
cargo +nightly-2017-10-09 clippy -- -D warnings
1617
- rust: nightly-2017-10-09
17-
env: RUSTFMT=YESPLEASE
18+
env: RUSTFMT_VERS="0.2.8"
1819
before_script: |
19-
cargo +nightly-2017-10-09 install rustfmt-nightly --vers "0.2.8"
20+
[[ "$(cargo +nightly-2017-10-09 fmt -- --version)" != "$RUSTFMT_VERS"* ]] && \
21+
cargo +nightly-2017-10-09 install rustfmt-nightly --vers "$RUSTFMT_VERS" --force
2022
script: |
2123
cargo +nightly-2017-10-09 fmt --all -- --write-mode=diff
2224
before_script:

0 commit comments

Comments
 (0)