From c7ba2f6b16f0197356b0b2812105850c6812c04b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 25 Aug 2019 10:33:35 +0200 Subject: [PATCH] travis: Add clippy/rustfmt job Signed-off-by: Matthias Beyer --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 009f3ca2..f3c89abf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,6 +55,18 @@ matrix: script: - cargo build --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: