forked from Smithay/smithay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.script-travis.sh
executable file
·39 lines (37 loc) · 1.2 KB
/
.script-travis.sh
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
37
38
39
#!/bin/sh
set -ex
case $FEATURES in
"all")
vagga cargo-"$TRAVIS_RUST_VERSION" test --all-features &&
vagga cargo-"$TRAVIS_RUST_VERSION" doc --no-deps --all-features
;;
"default")
vagga cargo-"$TRAVIS_RUST_VERSION" test &&
vagga cargo-"$TRAVIS_RUST_VERSION" doc --no-deps
;;
"examples")
vagga cargo-"$TRAVIS_RUST_VERSION" check --examples
;;
"cargo-fmt")
vagga cargo-"$TRAVIS_RUST_VERSION" fmt --all -- --check
;;
"cargo-clippy")
vagga cargo-"$TRAVIS_RUST_VERSION" clippy --all-features -- -D warnings
;;
"anvil")
cd anvil
case $ANVIL_FEATURES in
"all")
vagga cargo-"$TRAVIS_RUST_VERSION" test --all-features
;;
"default")
vagga cargo-"$TRAVIS_RUST_VERSION" test
;;
*)
vagga cargo-"$TRAVIS_RUST_VERSION" check --no-default-features --features "$ANVIL_FEATURES"
esac
;;
*)
vagga cargo-"$TRAVIS_RUST_VERSION" check --tests --no-default-features --features "$FEATURES" &&
vagga cargo-"$TRAVIS_RUST_VERSION" doc --no-deps --no-default-features --features "$FEATURES"
esac