summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index f5356354..2b6192d7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,18 +12,22 @@ rust:
- nightly
env:
- - FEATURES="clippy"
- - FEATURES=""
+ - CLIPPY="true"
+ - CLIPPY=""
+
+install:
+ - if [ -n "$CLIPPY" ]; then cargo install -f clippy; fi
matrix:
fast_finish: true
exclude:
- rust: stable
- env: FEATURES="clippy"
+ env: CLIPPY="true"
- rust: nightly
- env: FEATURES=""
+ env: CLIPPY=""
allow_failures:
- rust: nightly
script:
- - cargo test --no-default-features --features "$FEATURES"
+ - if [ -n "$CLIPPY" ]; then cargo clippy; fi
+ - if [ -z "$CLIPPY" ]; then cargo test; fi