summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-01-10 13:16:49 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-01-10 13:16:49 +0100
commitf11e2cc3c25ff7927a7bb19b0d8e372c3e5a5887 (patch)
treec260cc5872f077177bd2e8150100eead4a4bc4e5 /.travis.yml
parenta432be71b5beaa9a0c0b521560f80fec083cfda7 (diff)
Add travis setup
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..48e7e90
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,29 @@
+language: rust
+
+matrix:
+ fast_finish: true
+ allow_failures:
+ - rust: nightly
+ include:
+ - rust: 1.40.0
+ - rust: stable
+ - rust: beta
+ - rust: nightly
+ - name: rustfmt/clippy
+ rust: stable
+ install:
+ - rustup component add rustfmt clippy
+ script:
+ - cargo fmt --all -- --check
+ - cargo clippy --all --all-targets
+
+cache: cargo
+
+script:
+ - cargo build --all-features --verbose -j 1
+ - cargo test --all-features --verbose -j 1
+
+notifications:
+ email:
+ on_success: always
+ on_failure: always