travis: Add clippy/rustfmt job

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-08-25 10:33:35 +02:00
parent ce4a026858
commit c7ba2f6b16

View file

@ -55,6 +55,18 @@ matrix:
script: script:
- cargo build --all --all-features -j 1 || exit 1 - cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1 - cargo test --all --all-features -j 1 || exit 1
- language: rust
rust: stable
name: clippy
cache:
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
install:
- rustup component add clippy
script:
- cargo clippy --all --all-targets
addons: addons: