@@ -3,7 +3,6 @@ set -eox pipefail
33
44RUSTC_MINOR_VERSION=$( rustc --version | awk ' { split($2,a,"."); print a[2] }' )
55HOST_PLATFORM=" $( rustc --version --verbose | grep " host:" | awk ' { print $2 }' ) "
6- CONTRIB_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../contrib" && pwd )
76
87# Some crates require pinning to meet our MSRV even for our downstream users,
98# which we do here.
@@ -45,20 +44,22 @@ cargo check --verbose --color always --features rpc-client,rest-client,tokio
4544popd
4645
4746if [[ " $HOST_PLATFORM " != * windows* ]]; then
48- echo -e " \n\nBuilding and testing Transaction Sync Clients with features"
49- pushd lightning-transaction-sync
50-
51- source " $CONTRIB_DIR /download_bitcoind_electrs.sh"
52-
53- cargo test --verbose --color always --features esplora-blocking
54- cargo check --verbose --color always --features esplora-blocking
55- cargo test --verbose --color always --features esplora-async
56- cargo check --verbose --color always --features esplora-async
57- cargo test --verbose --color always --features esplora-async-https
58- cargo check --verbose --color always --features esplora-async-https
59- cargo test --verbose --color always --features electrum
60- cargo check --verbose --color always --features electrum
61- popd
47+ if [ -z " $BITCOIND_EXE " ] || [ -z " $ELECTRS_EXE " ]; then
48+ echo -e " \n\nSkipping testing Transaction Sync Clients due to BITCOIND_EXE or ELECTRS_EXE being unset."
49+ else
50+ echo -e " \n\nBuilding and testing Transaction Sync Clients with features"
51+ pushd lightning-transaction-sync
52+
53+ cargo test --verbose --color always --features esplora-blocking
54+ cargo check --verbose --color always --features esplora-blocking
55+ cargo test --verbose --color always --features esplora-async
56+ cargo check --verbose --color always --features esplora-async
57+ cargo test --verbose --color always --features esplora-async-https
58+ cargo check --verbose --color always --features esplora-async-https
59+ cargo test --verbose --color always --features electrum
60+ cargo check --verbose --color always --features electrum
61+ popd
62+ fi
6263fi
6364
6465echo -e " \n\nTest futures builds"
0 commit comments