diff --git a/.travis.yml b/.travis.yml index e2c33a3..646f42f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,8 @@ rust: - stable - beta - nightly + +script: + - if [[ "$TRAVIS_RUST_VERSION" == *stable* ]]; then rustup component add rustfmt; cargo fmt --version; cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false); fi + - cargo build -v + - cargo test -v