forked from gimli-rs/addr2line
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
executable file
·49 lines (40 loc) · 1.19 KB
/
script.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
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
set -ex
case "$GIMLI_JOB" in
"build")
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
cargo test
cargo test --release
else
cargo build
cargo build --release
fi
;;
"features")
cargo build --no-default-features --features "std"
cargo build --no-default-features --features "std cpp_demangle"
cargo build --no-default-features --features "std rustc-demangle"
cargo build --no-default-features --features "std object"
;;
"nightly_features")
cargo build --no-default-features --features "alloc"
;;
"doc")
cargo doc
;;
"bench")
cargo bench
;;
"coverage")
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --force cargo-tarpaulin
cargo tarpaulin --verbose --no-count --ciserver travis-ci --coveralls "$TRAVIS_JOB_ID";
;;
"cross")
rustup target add $TARGET
cargo install cross --force
cross test --target $TARGET $GIMLI_PROFILE --features "$GIMLI_FEATURES"
;;
*)
echo "Error! Unknown \$GIMLI_JOB: $GIMLI_JOB"
exit 1
esac