Skip to content

Commit 0b5a4ed

Browse files
committed
TRYTRY
1 parent 3543956 commit 0b5a4ed

File tree

1 file changed

+71
-71
lines changed

1 file changed

+71
-71
lines changed

ci/ci-tests.sh

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -50,77 +50,77 @@ WORKSPACE_MEMBERS=(
5050
possiblyrandom
5151
)
5252

53-
echo -e "\n\nChecking, testing, and building docs for all workspace members individually..."
54-
for DIR in "${WORKSPACE_MEMBERS[@]}"; do
55-
cargo test -p "$DIR" --verbose --color always
56-
cargo check -p "$DIR" --verbose --color always
57-
cargo doc -p "$DIR" --document-private-items
58-
done
59-
60-
echo -e "\n\nChecking and testing Block Sync Clients with features"
61-
62-
cargo test -p lightning-block-sync --verbose --color always --features rest-client
63-
cargo check -p lightning-block-sync --verbose --color always --features rest-client
64-
cargo test -p lightning-block-sync --verbose --color always --features rpc-client
65-
cargo check -p lightning-block-sync --verbose --color always --features rpc-client
66-
cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client
67-
cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client
68-
cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
69-
cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
70-
71-
echo -e "\n\nTest futures builds"
72-
cargo test -p lightning-background-processor --verbose --color always --features futures
73-
cargo test -p lightning-background-processor --verbose --color always --features futures --no-default-features
74-
75-
echo -e "\n\nTest Custom Message Macros"
76-
cargo test -p lightning-custom-message --verbose --color always
77-
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
78-
79-
echo -e "\n\nTest backtrace-debug builds"
80-
cargo test -p lightning --verbose --color always --features backtrace
81-
82-
echo -e "\n\nTesting no_std builds"
83-
for DIR in lightning-invoice lightning-rapid-gossip-sync lightning-liquidity; do
84-
cargo test -p $DIR --verbose --color always --no-default-features
85-
done
86-
87-
cargo test -p lightning --verbose --color always --no-default-features
88-
89-
echo -e "\n\nTesting c_bindings builds"
90-
# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
91-
# disable doctests in `c_bindings` so we skip doctests entirely here.
92-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always --lib --bins --tests
93-
94-
for DIR in lightning-invoice lightning-rapid-gossip-sync; do
95-
# check if there is a conflict between no_std and the c_bindings cfg
96-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
97-
done
98-
99-
# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
100-
# disable doctests in `c_bindings` so we skip doctests entirely here.
101-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --verbose --color always --features futures --no-default-features --lib --bins --tests
102-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --lib --bins --tests
103-
104-
echo -e "\n\nTesting other crate-specific builds"
105-
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
106-
RUSTFLAGS="$RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose --color always --no-default-features --features=std
107-
# This one only works for lightning-invoice
108-
# check that compile with no_std and serde works in lightning-invoice
109-
cargo test -p lightning-invoice --verbose --color always --no-default-features --features serde
110-
111-
echo -e "\n\nTesting no_std build on a downstream no-std crate"
112-
# check no-std compatibility across dependencies
113-
pushd no-std-check
114-
cargo check --verbose --color always
115-
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
116-
popd
117-
118-
# Test that we can build downstream code with only the "release pins".
119-
pushd msrv-no-dev-deps-check
120-
PIN_RELEASE_DEPS
121-
cargo check
122-
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
123-
popd
53+
#echo -e "\n\nChecking, testing, and building docs for all workspace members individually..."
54+
#for DIR in "${WORKSPACE_MEMBERS[@]}"; do
55+
# cargo test -p "$DIR" --verbose --color always
56+
# cargo check -p "$DIR" --verbose --color always
57+
# cargo doc -p "$DIR" --document-private-items
58+
#done
59+
#
60+
#echo -e "\n\nChecking and testing Block Sync Clients with features"
61+
#
62+
#cargo test -p lightning-block-sync --verbose --color always --features rest-client
63+
#cargo check -p lightning-block-sync --verbose --color always --features rest-client
64+
#cargo test -p lightning-block-sync --verbose --color always --features rpc-client
65+
#cargo check -p lightning-block-sync --verbose --color always --features rpc-client
66+
#cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client
67+
#cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client
68+
#cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
69+
#cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
70+
#
71+
#echo -e "\n\nTest futures builds"
72+
#cargo test -p lightning-background-processor --verbose --color always --features futures
73+
#cargo test -p lightning-background-processor --verbose --color always --features futures --no-default-features
74+
#
75+
#echo -e "\n\nTest Custom Message Macros"
76+
#cargo test -p lightning-custom-message --verbose --color always
77+
#[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
78+
#
79+
#echo -e "\n\nTest backtrace-debug builds"
80+
#cargo test -p lightning --verbose --color always --features backtrace
81+
#
82+
#echo -e "\n\nTesting no_std builds"
83+
#for DIR in lightning-invoice lightning-rapid-gossip-sync lightning-liquidity; do
84+
# cargo test -p $DIR --verbose --color always --no-default-features
85+
#done
86+
#
87+
#cargo test -p lightning --verbose --color always --no-default-features
88+
#
89+
#echo -e "\n\nTesting c_bindings builds"
90+
## Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
91+
## disable doctests in `c_bindings` so we skip doctests entirely here.
92+
#RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always --lib --bins --tests
93+
#
94+
#for DIR in lightning-invoice lightning-rapid-gossip-sync; do
95+
# # check if there is a conflict between no_std and the c_bindings cfg
96+
# RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
97+
#done
98+
#
99+
## Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
100+
## disable doctests in `c_bindings` so we skip doctests entirely here.
101+
#RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --verbose --color always --features futures --no-default-features --lib --bins --tests
102+
#RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --lib --bins --tests
103+
#
104+
#echo -e "\n\nTesting other crate-specific builds"
105+
## Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
106+
#RUSTFLAGS="$RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose --color always --no-default-features --features=std
107+
## This one only works for lightning-invoice
108+
## check that compile with no_std and serde works in lightning-invoice
109+
#cargo test -p lightning-invoice --verbose --color always --no-default-features --features serde
110+
#
111+
#echo -e "\n\nTesting no_std build on a downstream no-std crate"
112+
## check no-std compatibility across dependencies
113+
#pushd no-std-check
114+
#cargo check --verbose --color always
115+
#[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
116+
#popd
117+
#
118+
## Test that we can build downstream code with only the "release pins".
119+
#pushd msrv-no-dev-deps-check
120+
#PIN_RELEASE_DEPS
121+
#cargo check
122+
#[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
123+
#popd
124124

125125
if [ -f "$(which arm-none-eabi-gcc)" ]; then
126126
pushd no-std-check

0 commit comments

Comments
 (0)