Skip to content

Commit eb89a36

Browse files
authored
Merge pull request #80 from tomprince/pin-for-clippy
Pin clippy and nightly versions.
2 parents 34f9a24 + 4e791ce commit eb89a36

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ language: rust
44
cache: cargo
55
rust:
66
- stable
7-
- nightly
7+
- nightly-2017-05-31
8+
9+
env:
10+
global:
11+
# Version of clippy known to work with pinned nightly.
12+
- CLIPPY_VERSION=0.0.134
13+
814
before_script:
915
- export PATH=$HOME/.cargo/bin:$PATH
1016
- type -p cargo-install-update || cargo install --force cargo-update
1117
- |
1218
if [[ $TRAVIS_RUST_VERSION =~ nightly-* ]]; then
13-
if type -p cargo-clippy && cargo-clippy -V; then
14-
cargo install-update -i clippy
15-
else
19+
if ! type -p cargo-clippy || [[ "$(cargo-clippy -V)" != $CLIPPY_VERSION ]] ; then
1620
cargo install --force clippy
1721
fi
1822
fi

0 commit comments

Comments
 (0)