We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51739de commit 7af7b4bCopy full SHA for 7af7b4b
.travis.yml
@@ -1,11 +1,16 @@
1
language: rust
2
rust:
3
+ - 1.31.0
4
- stable
5
- beta
6
- nightly
7
matrix:
8
allow_failures:
9
- rust: nightly
10
+before_script:
11
+ - rustup component add clippy
12
+ - rustup component add rustfmt
13
+script: ci/script.sh
14
after_success:
15
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
16
cargo bench;
ci/script.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -ex
+cargo build
+cargo test
+# On Rust 1.31.0, we only care about passing tests.
+if [ ! rustc --version | grep "^rustc 1.31.0" ]; then
+ cargo fmt --all -- --check
+ cargo clippy -- -D warnings
+fi
0 commit comments