Skip to content

Commit 4e0fce5

Browse files
tormolThomas Bahn
authored andcommitted
Only install clippy on travis for targets where it's going to be run
Not running clippy on nightly doesn't help much when the before_script fails if the component isn't available today.
1 parent 65ffc77 commit 4e0fce5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ rust:
99

1010
before_script:
1111
- |
12-
pip install 'travis-cargo<0.2' --user &&
13-
rustup component add clippy &&
12+
pip install 'travis-cargo<0.2' --user || exit 1;
13+
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
14+
rustup component add clippy || exit 1
15+
fi
1416
export PATH=$HOME/.local/bin:$PATH
1517
1618
script:

0 commit comments

Comments
 (0)