aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
authorGravatar Mara Bos <m-ou.se@m-ou.se> 2019-10-29 08:07:44 +0100
committerGravatar Mara Bos <m-ou.se@m-ou.se> 2019-10-29 09:40:13 +0100
commit2d4b6e7f9f1741029649164d7d93e2f05e89adc4 (patch)
treedc1d035aca145f79e5eaa45425ce73642d973e73 /ci/script.sh
parentab7ed074d3ad4bb4d9250774e7ec9ba5fc506e1d (diff)
downloadcortex-m-2d4b6e7f9f1741029649164d7d93e2f05e89adc4.tar.gz
cortex-m-2d4b6e7f9f1741029649164d7d93e2f05e89adc4.tar.zst
cortex-m-2d4b6e7f9f1741029649164d7d93e2f05e89adc4.zip
Enable clippy in CI.
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh9
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