forked from polypoyo/nova-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 907 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
30
31
32
33
34
35
36
language: rust
rust:
- nightly-2019-09-24
- nightly
os:
- linux
matrix:
allow_failures:
- rust: nightly
fast_finish: true
cache: cargo
install:
# - |
# if ! hash cargo-install-update 2>/dev/null; then
# cargo install cargo-update;
# fi
# - cargo install-update --allow-no-update cargo-audit cargo-update
- |
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] || [[ "$TRAVIS_BRANCH" == "master" ]]; then
rustup component add --toolchain $TRAVIS_RUST_VERSION clippy rustfmt;
fi
script:
# - cargo audit
- cargo build --verbose --all --all-targets
- cargo test --verbose --all --all-targets --no-fail-fast
- cargo doc --verbose --all --no-deps
- |
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] || [[ "$TRAVIS_BRANCH" == "master" ]]; then
cargo clippy --verbose --all --all-targets -- -D warnings;
cargo fmt --verbose --all -- --check;
fi