diff options
author | 2019-10-29 10:17:08 +0000 | |
---|---|---|
committer | 2019-10-29 10:17:08 +0000 | |
commit | 130d2d89f647d6076e47d3a73a7c33843b735b02 (patch) | |
tree | e7c0d50c4e4f6bd6834e9713364a0c241c163c6f /ci/script.sh | |
parent | 5e8756752e91f17e76db5118637efddfaeb96382 (diff) | |
parent | 2d4b6e7f9f1741029649164d7d93e2f05e89adc4 (diff) | |
download | cortex-m-130d2d89f647d6076e47d3a73a7c33843b735b02.tar.gz cortex-m-130d2d89f647d6076e47d3a73a7c33843b735b02.tar.zst cortex-m-130d2d89f647d6076e47d3a73a7c33843b735b02.zip |
Merge #174
174: Enable clippy in CI r=thejpster a=m-ou-se
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
Diffstat (limited to 'ci/script.sh')
-rw-r--r-- | ci/script.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh index 8046774..7c30993 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -31,6 +31,15 @@ main() { if [ $TARGET = x86_64-unknown-linux-gnu ]; then ./check-blobs.sh fi + + if [ $TRAVIS_RUST_VERSION = nightly ]; then + # Get the latest nightly with a working clippy + rustup toolchain uninstall nightly + rustup set profile default + rustup default nightly + rustup target add $TARGET + cargo clippy --target $TARGET -- -D warnings + fi } main |