2017-06-24 22:08:46 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
cache: cargo
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
before_script:
|
|
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
2017-07-04 04:07:40 +00:00
|
|
|
- (test $TRAVIS_RUST_VERSION != "nightly" || cargo install rustfmt-nightly || true)
|
2017-06-24 22:08:46 +00:00
|
|
|
script:
|
2017-07-04 04:07:40 +00:00
|
|
|
- (test $TRAVIS_RUST_VERSION != "nightly" || cargo fmt -- --write-mode=diff)
|
2017-06-24 23:01:14 +00:00
|
|
|
- (test $TRAVIS_RUST_VERSION != "nightly" || cargo build --features "clippy")
|
2017-06-25 02:26:04 +00:00
|
|
|
- (test $TRAVIS_RUST_VERSION != "nightly" || cargo test --features "clippy")
|
|
|
|
- (test $TRAVIS_RUST_VERSION == "nightly" || cargo build)
|
|
|
|
- (test $TRAVIS_RUST_VERSION == "nightly" || cargo test)
|