summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2019-12-07 20:09:07 +0100
committerEduardo Broto <ebroto@tutanota.com>2019-12-07 22:37:50 +0100
commit423c6a52ba84c27b8667a762ee33bc28f44f0e37 (patch)
treec333f1ead744ae4c47e6cbcd086ab7fcfaf2005d /.travis.yml
parenta9d72f358fca4dbe7cedd07f02e7ea20b9b5bdc1 (diff)
chore(ci): run rustfmt and clippy
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