Skip to content

Commit

Permalink
[CI] Use local bitcoin for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Nov 7, 2024
1 parent 608e355 commit 261d7d6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/setup_script.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

sudo apt update -y && sudo apt install -y curl
curl -o /tmp/bitcoin.tar.gz https://bitcoincore.org/bin/bitcoin-core-26.0/bitcoin-26.0-x86_64-linux-gnu.tar.gz && \
sudo tar -xf /tmp/bitcoin.tar.gz -C / && \
sudo mv /bitcoin-26.0 /bitcoin
sudo apt update -y

sudo apt-get install libevent-dev libboost-dev
sudo apt install libsqlite3-dev

sudo mkdir -p /bitcoin/bin
sudo unzip tests/bitcoin-with-musig.zip -d /bitcoin/bin

# Add bitcoin binaries to path
export PATH=/bitcoin/bin:$PATH
export PATH=/bitcoin/bin:$PATH

0 comments on commit 261d7d6

Please sign in to comment.