@@ -29,50 +29,50 @@ cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abno
29
29
export CARGO_TERM_VERBOSE=true
30
30
31
31
# Defaults / sanity checks
32
- cargo build --all
33
- cargo test --all
32
+ cargo build --locked -- all
33
+ cargo test --locked -- all
34
34
35
35
if [ " $DO_FEATURE_MATRIX " = true ]; then
36
- cargo build --all --no-default-features
37
- cargo test --all --no-default-features
36
+ cargo build --locked -- all --no-default-features
37
+ cargo test --locked -- all --no-default-features
38
38
39
39
# All features
40
- cargo build --all --no-default-features --features=" $FEATURES "
41
- cargo test --all --no-default-features --features=" $FEATURES "
40
+ cargo build --locked -- all --no-default-features --features=" $FEATURES "
41
+ cargo test --locked -- all --no-default-features --features=" $FEATURES "
42
42
# Single features
43
43
for feature in ${FEATURES}
44
44
do
45
- cargo build --all --no-default-features --features=" $feature "
46
- cargo test --all --no-default-features --features=" $feature "
45
+ cargo build --locked -- all --no-default-features --features=" $feature "
46
+ cargo test --locked -- all --no-default-features --features=" $feature "
47
47
done
48
48
# Features tested with 'std' feature enabled.
49
49
for feature in ${FEATURES}
50
50
do
51
- cargo build --all --no-default-features --features=" std,$feature "
52
- cargo test --all --no-default-features --features=" std,$feature "
51
+ cargo build --locked -- all --no-default-features --features=" std,$feature "
52
+ cargo test --locked -- all --no-default-features --features=" std,$feature "
53
53
done
54
54
# Other combos
55
- RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --all
56
- RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --all --features=" $FEATURES "
57
- cargo test --all --features=" rand serde"
55
+ RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --locked -- all
56
+ RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --locked -- all --features=" $FEATURES "
57
+ cargo test --locked -- all --features=" rand serde"
58
58
59
59
if [ " $NIGHTLY " = true ]; then
60
- cargo test --all --all-features
61
- RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --all --all-features
60
+ cargo test --locked -- all --all-features
61
+ RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --locked -- all --all-features
62
62
fi
63
63
64
64
# Examples
65
- cargo run --example sign_verify --features=bitcoin-hashes-std
66
- cargo run --example sign_verify_recovery --features=recovery,bitcoin-hashes-std
67
- cargo run --example generate_keys --features=rand-std
65
+ cargo run --locked -- example sign_verify --features=bitcoin-hashes-std
66
+ cargo run --locked -- example sign_verify_recovery --features=recovery,bitcoin-hashes-std
67
+ cargo run --locked -- example generate_keys --features=rand-std
68
68
fi
69
69
70
70
if [ " $DO_LINT " = true ]
71
71
then
72
- cargo clippy --all-features --all-targets -- -D warnings
73
- cargo clippy --example sign_verify --features=bitcoin-hashes-std -- -D warnings
74
- cargo clippy --example sign_verify_recovery --features=recovery,bitcoin-hashes-std -- -D warnings
75
- cargo clippy --example generate_keys --features=rand-std -- -D warnings
72
+ cargo clippy --locked -- all-features --all-targets -- -D warnings
73
+ cargo clippy --locked -- example sign_verify --features=bitcoin-hashes-std -- -D warnings
74
+ cargo clippy --locked -- example sign_verify_recovery --features=recovery,bitcoin-hashes-std -- -D warnings
75
+ cargo clippy --locked -- example generate_keys --features=rand-std -- -D warnings
76
76
fi
77
77
78
78
# Build the docs if told to (this only works with the nightly toolchain)
0 commit comments