GitHub: use bitcoind v26.0 for CI, remove default value
To make it less confusing what version of bitcoind is actually installed, we now require the version to be specified as a command line argument. Because we tag the version in the docker image tag as bitcoin-core:XX but the binary internally is located under /opt/bitcoin-XX.Y/, we manually set Y to 0.
This commit is contained in:
3 files changed
+13
-7
No files matched your search
@@ -21,7 +21,7 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BITCOIN_VERSION: "23.0"
|
BITCOIN_VERSION: "26"
|
||||||
|
|
||||||
# If you change this value, please change it in the following files as well:
|
# If you change this value, please change it in the following files as well:
|
||||||
# /.travis.yml
|
# /.travis.yml
|
||||||
@@ -215,7 +215,7 @@ jobs:
|
|||||||
key-prefix: unit-test
|
key-prefix: unit-test
|
||||||
|
|
||||||
- name: install bitcoind
|
- name: install bitcoind
|
||||||
run: ./scripts/install_bitcoind.sh
|
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
||||||
|
|
||||||
- name: run ${{ matrix.unit_type }}
|
- name: run ${{ matrix.unit_type }}
|
||||||
run: make log="stdlog debug" ${{ matrix.unit_type }}
|
run: make log="stdlog debug" ${{ matrix.unit_type }}
|
||||||
@@ -271,7 +271,7 @@ jobs:
|
|||||||
key-prefix: integration-test
|
key-prefix: integration-test
|
||||||
|
|
||||||
- name: install bitcoind
|
- name: install bitcoind
|
||||||
run: ./scripts/install_bitcoind.sh
|
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
||||||
|
|
||||||
- name: run ${{ matrix.name }}
|
- name: run ${{ matrix.name }}
|
||||||
run: make itest-parallel ${{ matrix.args }}
|
run: make itest-parallel ${{ matrix.args }}
|
||||||
|
|||||||
+2
-2
@@ -26,7 +26,7 @@ go:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GOCACHE=$HOME/.go-build
|
- GOCACHE=$HOME/.go-build
|
||||||
- BITCOIN_VERSION="22.0"
|
- BITCOIN_VERSION="26"
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- stage: Integration Test
|
- stage: Integration Test
|
||||||
name: Bitcoind Integration ARM
|
name: Bitcoind Integration ARM
|
||||||
script:
|
script:
|
||||||
- bash ./scripts/install_bitcoind.sh
|
- bash ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
||||||
- GOMEMLIMIT=1024MiB GOARM=7 GOARCH=arm GOOS=linux travis_wait 120 make itest-parallel backend=bitcoind tranches=8
|
- GOMEMLIMIT=1024MiB GOARM=7 GOARCH=arm GOOS=linux travis_wait 120 make itest-parallel backend=bitcoind tranches=8
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,15 @@
|
|||||||
|
|
||||||
set -ev
|
set -ev
|
||||||
|
|
||||||
BITCOIND_VERSION=${BITCOIN_VERSION:-25.0}
|
BITCOIND_VERSION=$1
|
||||||
|
|
||||||
|
if [ -z "$BITCOIND_VERSION" ]; then
|
||||||
|
echo "Must specify a version of bitcoind to install."
|
||||||
|
echo "Usage: install_bitcoind.sh <version>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
docker pull lightninglabs/bitcoin-core:$BITCOIND_VERSION
|
docker pull lightninglabs/bitcoin-core:$BITCOIND_VERSION
|
||||||
CONTAINER_ID=$(docker create lightninglabs/bitcoin-core:$BITCOIND_VERSION)
|
CONTAINER_ID=$(docker create lightninglabs/bitcoin-core:$BITCOIND_VERSION)
|
||||||
sudo docker cp $CONTAINER_ID:/opt/bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind
|
sudo docker cp $CONTAINER_ID:/opt/bitcoin-$BITCOIND_VERSION.0/bin/bitcoind /usr/local/bin/bitcoind
|
||||||
docker rm $CONTAINER_ID
|
docker rm $CONTAINER_ID
|
||||||
Reference in new issue
Block a user