diff --git a/.travis.yml b/.travis.yml index 9516edd..bc3ffc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,8 +39,12 @@ matrix: rust: stable before_script: - rustup component add clippy-preview + - cargo clippy --version + - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings + - cargo fmt --all -- --check - cargo test --verbose - cargo build --release --target $TARGET --locked <<: *DEPLOY_TO_GITHUB @@ -57,8 +61,12 @@ matrix: rust: nightly before_script: - rustup component add clippy-preview + - cargo clippy --version + - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings + - cargo fmt --all -- --check - cargo test --verbose - cargo build --verbose @@ -68,8 +76,12 @@ matrix: rust: stable before_script: - rustup component add clippy-preview + - cargo clippy --version + - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings + - cargo fmt --all -- --check - cargo test --verbose - cargo build --release --target $TARGET --locked <<: *DEPLOY_TO_GITHUB @@ -88,7 +100,11 @@ matrix: rust: nightly before_script: - rustup component add clippy-preview + - cargo clippy --version + - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings + - cargo fmt --all -- --check - cargo test --verbose - cargo build --verbose