forked from synacktiv/rulesfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 892 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
language: rust
matrix:
include:
- rust: stable
env: BUILD=1 TEST=1 CLIPPY=1 RUSTFMT=1
- rust: beta
env: BUILD=1 TEST=1 CLIPPY=0 RUSTFMT=0
- rust: beta
env: BUILD=0 TEST=0 CLIPPY=1 RUSTFMT=1
- rust: nightly
env: BUILD=1 TEST=1 CLIPPY=0 RUSTFMT=0
- rust: nightly
env: BUILD=0 TEST=0 CLIPPY=1 RUSTFMT=1
allow_failures:
- rust: beta
env: BUILD=0 TEST=0 CLIPPY=1 RUSTFMT=1
- rust: nightly
before_script:
- "if [ $CLIPPY -eq 1 ]; then rustup component add clippy; fi"
- "if [ $RUSTFMT -eq 1 ]; then rustup component add rustfmt; fi"
script:
- "if [ $BUILD -eq 1 ]; then cargo build --verbose --all; fi"
- "if [ $TEST -eq 1 ]; then cargo test --verbose --all; fi"
- "if [ $CLIPPY -eq 1 ]; then cargo clippy --all-targets --all-features -- -D warnings; fi"
- "if [ $RUSTFMT -eq 1 ]; then cargo fmt --all -- --check; fi"