blob: f2a17fa87eeee6a77d8a8757e04f738e3814f1aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
os:
- linux
- osx
language: rust
rust:
- stable
- beta
before_script:
- rustup component add rustfmt clippy
script:
- set -e # Abort on failure, see https://github.com/travis-ci/travis-ci/issues/1066
- cargo fmt -- --check
- cargo build --verbose
- cargo test --verbose
- cargo clippy --all-targets --all-features -- -D warnings
matrix:
include:
- os: linux
rust: nightly
before_script:
- rustup component add rustfmt
- rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
- os: osx
rust: nightly
before_script:
- rustup component add rustfmt
- rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
allow_failures:
- rust: nightly
|