Skip to content

Commit b4dc220

Browse files
committed
TRYTRY
1 parent e3295c3 commit b4dc220

File tree

2 files changed

+93
-93
lines changed

2 files changed

+93
-93
lines changed

ci/ci-tests.sh

+90-90
Original file line numberDiff line numberDiff line change
@@ -32,99 +32,99 @@ export RUST_BACKTRACE=1
3232
echo -e "\n\nChecking the workspace, except lightning-transaction-sync."
3333
cargo check --verbose --color always
3434

35-
# When the workspace members change, make sure to update the list here as well
36-
# as in `Cargo.toml`.
37-
WORKSPACE_MEMBERS=(
38-
lightning
39-
lightning-types
40-
lightning-block-sync
41-
lightning-invoice
42-
lightning-net-tokio
43-
lightning-persister
44-
lightning-background-processor
45-
lightning-rapid-gossip-sync
46-
lightning-custom-message
47-
lightning-macros
48-
lightning-dns-resolver
49-
lightning-liquidity
50-
possiblyrandom
51-
)
52-
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
35+
## When the workspace members change, make sure to update the list here as well
36+
## as in `Cargo.toml`.
37+
#WORKSPACE_MEMBERS=(
38+
# lightning
39+
# lightning-types
40+
# lightning-block-sync
41+
# lightning-invoice
42+
# lightning-net-tokio
43+
# lightning-persister
44+
# lightning-background-processor
45+
# lightning-rapid-gossip-sync
46+
# lightning-custom-message
47+
# lightning-macros
48+
# lightning-dns-resolver
49+
# lightning-liquidity
50+
# possiblyrandom
51+
#)
52+
#
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
127-
cargo build --target=thumbv7m-none-eabi
127+
cargo build --target=thumbv7m-none-eabi --release
128128
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
129129
popd
130130
fi

lightning-liquidity/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ serde_json = "1.0"
3131
backtrace = { version = "0.3", optional = true }
3232

3333
[dev-dependencies]
34-
lightning = { version = "0.2.0", path = "../lightning", default-features = false, features = ["_test_utils"] }
35-
lightning-invoice = { version = "0.34.0", path = "../lightning-invoice", default-features = false, features = ["serde", "std"] }
36-
lightning-persister = { version = "0.2.0", path = "../lightning-persister", default-features = false }
34+
#lightning = { version = "0.2.0", path = "../lightning", default-features = false, features = ["_test_utils"] }
35+
#lightning-invoice = { version = "0.34.0", path = "../lightning-invoice", default-features = false, features = ["serde", "std"] }
36+
#lightning-persister = { version = "0.2.0", path = "../lightning-persister", default-features = false }
3737

3838
proptest = "1.0.0"
3939
tokio = { version = "1.35", default-features = false, features = [ "rt-multi-thread", "time", "sync", "macros" ] }

0 commit comments

Comments
 (0)