aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/script.sh')
-rwxr-xr-xci/script.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ci/script.sh b/ci/script.sh
index 4dfc4323..c17bbbd2 100755
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -3,9 +3,10 @@
# Check if any command failed
error=false
-# Run clippy on nightly builds
-if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
- cargo clippy --all-features --all-targets || error=true
+# Run clippy checks
+if [ "$CLIPPY" == "true" ]; then
+ cargo clippy --all-targets
+ exit
fi
# Run test in release mode if a tag is present, to produce an optimized binary