summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 8c91a74..df70939 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,20 @@ language: rust
rust:
- stable
- beta
- - nightly
+before_script:
+ - rustup component add rustfmt clippy
+script:
+ - set -e # Abort on failure, see https://github.com/travis-ci/travis-ci/issues/1066
+ - cargo fmt -- --check
+ - cargo build --verbose
+ - cargo test --verbose
+ - cargo clippy --all-targets --all-features -- -D warnings
matrix:
+ include:
+ - rust: nightly
+ before_script:
+ - rustup component add rustfmt
+ # Fallback to git in case clippy is not available in the current nightly
+ - rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
allow_failures:
- rust: nightly