X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ci%2Fci-tests.sh;h=b2de8bc4af3cfc1b39710d012b9bda974746125d;hb=3b8bf93251a9c8aa528c6961d572a611bc140eb5;hp=7b0beb90fa9e3d59c851ec091a35b8ef53f902fa;hpb=48fa2fd17295bcada25a3ee3f2c6f88d273484ac;p=rust-lightning diff --git a/ci/ci-tests.sh b/ci/ci-tests.sh index 7b0beb90..b2de8bc4 100755 --- a/ci/ci-tests.sh +++ b/ci/ci-tests.sh @@ -4,8 +4,9 @@ set -eox pipefail RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }') HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')" -# Tokio MSRV on versions newer than 1.14 is rustc 1.49 +# Tokio MSRV on versions 1.17 through 1.26 is rustc 1.49. Above 1.26 MSRV is 1.56. [ "$RUSTC_MINOR_VERSION" -lt 49 ] && cargo update -p tokio --precise "1.14.0" --verbose +[[ "$RUSTC_MINOR_VERSION" -gt 48 && "$RUSTC_MINOR_VERSION" -lt 56 ]] && cargo update -p tokio --precise "1.26.0" --verbose [ "$LDK_COVERAGE_BUILD" != "" ] && export RUSTFLAGS="-C link-dead-code" export RUST_BACKTRACE=1 @@ -89,3 +90,8 @@ if [ "$RUSTC_MINOR_VERSION" -gt 55 ]; then cargo test --verbose --color always popd fi + +echo -e "\n\nTest anchors builds" +pushd lightning +RUSTFLAGS="$RUSTFLAGS --cfg=anchors" cargo test --verbose --color always -p lightning +popd