11
11
cargo --version
12
12
rustc --version
13
13
14
+ # Make all cargo invocations verbose
15
+ export CARGO_TERM_VERBOSE=true
16
+
14
17
# Defaults / sanity checks
15
- cargo build --verbose
16
- cargo test --verbose
18
+ cargo build --all
19
+ cargo test --all
17
20
18
21
if [ " $DO_FEATURE_MATRIX " = true ]; then
19
- cargo build --verbose --no-default-features
22
+ cargo build --all --no-default-features
20
23
# This doesn't work but probably should --andrew
21
- # cargo test --verbose --no-default-features
24
+ # cargo test --all --no-default-features
22
25
23
26
# All features
24
- cargo build --verbose --no-default-features --features=" $FEATURES "
25
- cargo test --verbose --features=" $FEATURES "
27
+ cargo build --all --no-default-features --features=" $FEATURES "
28
+ cargo test --all --features=" $FEATURES "
26
29
# Single features
27
30
for feature in ${FEATURES}
28
31
do
29
- cargo build --verbose --no-default-features --features=" $feature "
30
- cargo test --verbose --features=" $feature "
32
+ cargo build --all --no-default-features --features=" $feature "
33
+ cargo test --all --features=" $feature "
31
34
done
32
35
33
- # Other combos
34
- RUSTFLAGS=' --cfg=rust_secp_fuzz' cargo test --no-run --verbose
35
- RUSTFLAGS=' --cfg=rust_secp_fuzz' cargo test --no-run --verbose --features=" recovery"
36
- cargo test --verbose --features=" rand rand-std"
37
- cargo test --verbose --features=" rand serde"
36
+ # Other combos
37
+ RUSTFLAGS=' --cfg=rust_secp_fuzz' cargo test --no-run --all
38
+ RUSTFLAGS=' --cfg=rust_secp_fuzz' cargo test --no-run --all --features=" recovery"
39
+ cargo test --all --features=" rand rand-std"
40
+ cargo test --all --features=" rand serde"
38
41
39
42
# Examples
40
43
cargo run --example sign_verify
44
47
45
48
# Docs
46
49
if [ " $DO_DOCS " = true ]; then
47
- cargo doc --verbose --features=" $FEATURES "
50
+ cargo doc --all --features=" $FEATURES "
48
51
fi
49
52
50
53
# Webassembly stuff
51
54
if [ " $DO_WASM " = true ]; then
52
55
clang --version &&
53
- CARGO_TARGET_DIR=wasm cargo install --verbose -- force wasm-pack &&
56
+ CARGO_TARGET_DIR=wasm cargo install --force wasm-pack &&
54
57
printf ' \n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml &&
55
58
CC=clang-9 wasm-pack build &&
56
59
CC=clang-9 wasm-pack test --node;
@@ -62,16 +65,16 @@ if [ "$DO_ASAN" = true ]; then
62
65
CC=' clang -fsanitize=address -fno-omit-frame-pointer' \
63
66
RUSTFLAGS=' -Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \
64
67
ASAN_OPTIONS=' detect_leaks=1 detect_invalid_pointer_pairs=1 detect_stack_use_after_return=1' \
65
- cargo test --lib --verbose --features=" $FEATURES " -Zbuild-std --target x86_64-unknown-linux-gnu &&
68
+ cargo test --lib --all --features=" $FEATURES " -Zbuild-std --target x86_64-unknown-linux-gnu &&
66
69
cargo clean &&
67
70
CC=' clang -fsanitize=memory -fno-omit-frame-pointer' \
68
71
RUSTFLAGS=' -Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes' \
69
- cargo test --lib --verbose --features=" $FEATURES " -Zbuild-std --target x86_64-unknown-linux-gnu &&
70
- cd no_std_test && cargo run --release | grep -q " Verified Successfully"
72
+ cargo test --lib --all --features=" $FEATURES " -Zbuild-std --target x86_64-unknown-linux-gnu &&
73
+ cargo run --release --manifest-path=./no_std_test/Cargo.toml | grep -q " Verified Successfully"
71
74
fi
72
75
73
76
# Bench
74
77
if [ " $DO_BENCH " = true ]; then
75
- cargo bench --features=" unstable"
78
+ cargo bench --all -- features=" unstable"
76
79
fi
77
80
0 commit comments