diff options
author | 2019-10-29 08:07:44 +0100 | |
---|---|---|
committer | 2019-10-29 09:40:13 +0100 | |
commit | 2d4b6e7f9f1741029649164d7d93e2f05e89adc4 (patch) | |
tree | dc1d035aca145f79e5eaa45425ce73642d973e73 | |
parent | ab7ed074d3ad4bb4d9250774e7ec9ba5fc506e1d (diff) | |
download | cortex-m-2d4b6e7f9f1741029649164d7d93e2f05e89adc4.tar.gz cortex-m-2d4b6e7f9f1741029649164d7d93e2f05e89adc4.tar.zst cortex-m-2d4b6e7f9f1741029649164d7d93e2f05e89adc4.zip |
Enable clippy in CI.
-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 |