diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-10-08 11:16:18 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-10-08 11:28:41 +0200 |
commit | ba07e63ea40243c0fa78d5937bb79050c4b4625a (patch) | |
tree | 9e991d7b572bb3fbd5514f07338f69798319b50a | |
parent | 54a106ca166ef37129fbcb8490ab94e5cb7f346d (diff) | |
download | askama-ba07e63ea40243c0fa78d5937bb79050c4b4625a.tar.gz askama-ba07e63ea40243c0fa78d5937bb79050c4b4625a.tar.bz2 askama-ba07e63ea40243c0fa78d5937bb79050c4b4625a.zip |
Clean up Travis config and check formatting
Diffstat (limited to '')
-rw-r--r-- | .travis.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index a8bee0a..09689fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,18 @@ language: rust rust: - stable - beta -script: - - cargo test --all cache: cargo matrix: include: - rust: nightly-2018-08-24 - before_script: - - rustup component add rustfmt-preview - - rustup component add clippy-preview script: - cd testing && cargo test --no-default-features --features with-rocket + +before_script: +- rustup component add rustfmt-preview + +script: +- cargo test --all +- if [[ "${TRAVIS_RUST_VERSION}" == stable ]]; then + cargo fmt -- --check; + fi |