Skip to content

Commit 30647f2

Browse files
committed
Deny warnings in CI
Since we recently got rid of our last build/test/doc warnings, we now deny warnings via `-D warnings` in CI, enforcing no new ones are introduced.
1 parent 2b04f19 commit 30647f2

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

ci/ci-tests.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
6464
[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p backtrace --precise "0.3.68" --verbose
6565

6666
export RUST_BACKTRACE=1
67+
export RUSTFLAGS="-D warnings"
6768

6869
echo -e "\n\nBuilding and testing all workspace crates..."
6970
cargo test --verbose --color always
@@ -92,14 +93,14 @@ if [[ "$HOST_PLATFORM" != *windows* ]]; then
9293

9394
DOWNLOAD_ELECTRS_AND_BITCOIND
9495

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
103104

104105
popd
105106
fi
@@ -136,9 +137,9 @@ done
136137

137138
for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
138139
# 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
140141
done
141-
RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always
142+
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always
142143

143144
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
144145
pushd lightning

0 commit comments

Comments
 (0)