From c80d28ab9be23947f29d8265036ef46b4441c0cb Mon Sep 17 00:00:00 2001 From: maik Date: Fri, 21 Jun 2019 10:13:26 +0200 Subject: [PATCH] Add travis.yml --- .travis.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c0e387b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +language: rust + +rust: +- stable +- beta +- nightly +matrix: + allow_failures: + - rust: nightly + fast_finish: true + include: + - os: osx + +before_script: +- rustup component add rustfmt clippy + +env: + global: + - RUST_BACKTRACE=1 + +script: +# Ensure everything has been rustfmt'ed +- cargo fmt -- --check +# Download in a separate step to separate +# building from fetching dependencies +- cargo fetch +# Because rust isn't brutal enough itself +- cargo clippy -- -D warnings +# Build everything in a separate step to make a +# clear distinction between building and testing +- cargo test --no-run +- cargo test --no-fail-fast