forked from mozilla/rkv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 1003 Bytes
/
.travis.yml
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
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
allow_failures:
- rust: nightly
fast_finish: true
before_script:
# We install a known-to-have-rustfmt version of the nightly toolchain
# in order to run the nightly version of rustfmt, which supports rules
# that we depend upon.
- rustup toolchain install nightly-2019-02-07
- rustup component add rustfmt --toolchain nightly-2019-02-07
- command -v rustfmt || cargo install --force rustfmt-nightly
# install clippy via rustup, use the github source as a fallback
- rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
script:
- cargo +nightly-2019-02-07 fmt --all -- --check
# check all the targets (source code, tests, non-default crate features), and stop the build upon any warning
- cargo clippy --all-targets --all-features -- -D warnings
- cargo build --verbose
- cargo test --verbose
- ./run-all-examples.sh