summaryrefslogtreecommitdiffstats
path: root/ci/script.sh
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-23 22:04:45 +0000
committerGitHub <noreply@github.com>2019-01-23 22:04:45 +0000
commit430b89c1599abde4fc8520ffcb0e25d9034bea8d (patch)
treeb73a7c637674ae3314a66f69ecb64f21d1624931 /ci/script.sh
parent3be51e6aeace4ff14fc4fc20993cd80076487324 (diff)
Move clippy tests to stable
The clippy tests had to be run on nightly previously since it wasn't available with the stable compiler yet, however this had the potential to fail a lot since not all nightly builds offer clippy. Since clippy is now available for stable rust, moving clippy to a stable build should make sure that the failure rate of the CI job is cut down to a minimum. This fixes https://github.com/jwilm/alacritty/issues/2007.
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