Browse Source
As of 13 March the latest pytest breaks the twisted tests. As a result the version is pinned until that can be fixed. Additionally, at the same time, the bitcoin ppa has been removed and so cannot be used in our travis testing setup. Hence we install bitcoin directly (for tests only, of course) from bitcoin.org, copying bitcoind and bitcoin-cli to `/usr/local/lib`.master
3 changed files with 24 additions and 5 deletions
@ -0,0 +1,21 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
|
||||||
|
set -ev |
||||||
|
|
||||||
|
export BITCOIND_VERSION=0.19.1 |
||||||
|
|
||||||
|
if sudo cp ~/bitcoin/bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind |
||||||
|
then |
||||||
|
echo "found cached bitcoind" |
||||||
|
sudo cp ~/bitcoin/bitcoin-$BITCOIND_VERSION/bin/bitcoin-cli /usr/local/bin/bitcoin-cli |
||||||
|
else |
||||||
|
mkdir -p ~/bitcoin && \ |
||||||
|
pushd ~/bitcoin && \ |
||||||
|
wget https://bitcoin.org/bin/bitcoin-core-$BITCOIND_VERSION/bitcoin-$BITCOIND_VERSION-x86_64-linux-gnu.tar.gz && \ |
||||||
|
tar xvfz bitcoin-$BITCOIND_VERSION-x86_64-linux-gnu.tar.gz && \ |
||||||
|
sudo cp ./bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind && \ |
||||||
|
sudo cp ./bitcoin-$BITCOIND_VERSION/bin/bitcoin-cli /usr/local/bin/bitcoin-cli && \ |
||||||
|
popd |
||||||
|
fi |
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in new issue