From 5eba9c3189d509e206198e5910dde5c8b8cfb946 Mon Sep 17 00:00:00 2001 From: Wim van der Ham Date: Tue, 6 Jun 2023 21:33:47 +0200 Subject: [PATCH] Run tests for minimum supported bitcoin version --- .cirrus.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 2a9fd1e9..a0424d01 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -13,6 +13,9 @@ task: - name: 'Misc functional tests' env: TEST_GROUP: tests/test_misc.py + matrix: + - USE_MIN_BITCOIN_VERSION: 'TRUE' + - USE_MIN_BITCOIN_VERSION: 'FALSE' - name: 'RPC functional tests' env: TEST_GROUP: tests/test_rpc.py @@ -42,11 +45,19 @@ task: test_script: | set -xe - # Download the bitcoind binary - curl -O https://bitcoincore.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz - echo "33930d432593e49d58a9bff4c30078823e9af5d98594d2935862788ce8a20aec bitcoin-25.0-x86_64-linux-gnu.tar.gz" | sha256sum -c - tar -xzf bitcoin-25.0-x86_64-linux-gnu.tar.gz - export BITCOIND_PATH=bitcoin-25.0/bin/bitcoind + if [ "$USE_MIN_BITCOIN_VERSION" = "TRUE" ]; then + # Download the minimum required bitcoind binary + curl -O https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz + echo "49df6e444515d457ea0b885d66f521f2a26ca92ccf73d5296082e633544253bf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz" | sha256sum -c + tar -xzf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz + export BITCOIND_PATH=bitcoin-24.0.1/bin/bitcoind + else + # Download the bitcoind binary + curl -O https://bitcoincore.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz + echo "33930d432593e49d58a9bff4c30078823e9af5d98594d2935862788ce8a20aec bitcoin-25.0-x86_64-linux-gnu.tar.gz" | sha256sum -c + tar -xzf bitcoin-25.0-x86_64-linux-gnu.tar.gz + export BITCOIND_PATH=bitcoin-25.0/bin/bitcoind + fi # The misc tests have a backward compat test that need the path to a previous version of Liana. # For now it requires using 0.3.