@@ -4,33 +4,26 @@ set -ex
4
4
5
5
FEATURES=" compiler serde rand base64"
6
6
7
- cargo update -p serde --precise 1.0.142
8
- cargo update -p serde_derive --precise 1.0.142
9
-
10
7
cargo --version
11
8
rustc --version
12
9
10
+ # Format if told to
11
+ if [ " $DO_FMT " = true ]
12
+ then
13
+ rustup component add rustfmt
14
+ cargo fmt -- --check
15
+ fi
16
+
13
17
# Pin dependencies required to build with Rust 1.41.1
14
18
if cargo --version | grep " 1\.41\.0" ; then
15
- cargo update -p url --precise 2.2.2
16
- cargo update -p form_urlencoded --precise 1.0.1
17
19
cargo update -p once_cell --precise 1.13.1
18
- cargo update -p bzip2 --precise 0.4.2
19
- cargo update -p which --precise 4.3.0
20
20
fi
21
21
22
22
# Pin dependencies required to build with Rust 1.47.0
23
23
if cargo --version | grep " 1\.47\.0" ; then
24
24
cargo update -p once_cell --precise 1.13.1
25
25
fi
26
26
27
- # Format if told to
28
- if [ " $DO_FMT " = true ]
29
- then
30
- rustup component add rustfmt
31
- cargo fmt -- --check
32
- fi
33
-
34
27
# Fuzz if told to
35
28
if [ " $DO_FUZZ " = true ]
36
29
then
42
35
exit 0
43
36
fi
44
37
38
+ # Test bitcoind integration tests if told to (this only works with the stable toolchain)
39
+ if [ " $DO_BITCOIND_TESTS " = true ]; then
40
+ cd bitcoind-tests
41
+ cargo test --verbose
42
+
43
+ # Exit integration tests, do not run other tests.
44
+ exit 0
45
+ fi
46
+
45
47
# Defaults / sanity checks
46
48
cargo test
47
49
65
67
cargo run --example psbt
66
68
cargo run --example xpub_descriptors
67
69
cargo run --example taproot --features=compiler
68
- cargo run --example psbt_sign_finalize
70
+ cargo run --example psbt_sign_finalize --features=base64
69
71
fi
70
72
71
73
if [ " $DO_NO_STD " = true ]
0 commit comments