@@ -64,6 +64,7 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
64
64
[ " $RUSTC_MINOR_VERSION " -lt 65 ] && cargo update -p backtrace --precise " 0.3.68" --verbose
65
65
66
66
export RUST_BACKTRACE=1
67
+ export RUSTFLAGS=" -D warnings"
67
68
68
69
echo -e " \n\nBuilding and testing all workspace crates..."
69
70
cargo test --verbose --color always
@@ -92,14 +93,14 @@ if [[ "$HOST_PLATFORM" != *windows* ]]; then
92
93
93
94
DOWNLOAD_ELECTRS_AND_BITCOIND
94
95
95
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features esplora-blocking
96
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features esplora-blocking
97
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features esplora-async
98
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features esplora-async
99
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features esplora-async-https
100
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features esplora-async-https
101
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features electrum
102
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features electrum
96
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features esplora-blocking
97
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features esplora-blocking
98
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features esplora-async
99
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features esplora-async
100
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features esplora-async-https
101
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features esplora-async-https
102
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features electrum
103
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features electrum
103
104
104
105
popd
105
106
fi
136
137
137
138
for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
138
139
# check if there is a conflict between no-std and the c_bindings cfg
139
- RUSTFLAGS=" --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
140
+ RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
140
141
done
141
- RUSTFLAGS=" --cfg=c_bindings" cargo test --verbose --color always
142
+ RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always
142
143
143
144
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
144
145
pushd lightning
0 commit comments