travis: install bitcoind 0.17.1 binaries
This commit is contained in:
parent
339080394d
commit
98f8696e68
@ -1,6 +1,7 @@
|
|||||||
language: go
|
language: go
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
- ~/bitcoin/bitcoin-0.17.1/bin
|
||||||
- $GOCACHE
|
- $GOCACHE
|
||||||
- $GOPATH/pkg/mod
|
- $GOPATH/pkg/mod
|
||||||
- $GOPATH/src/github.com/btcsuite
|
- $GOPATH/src/github.com/btcsuite
|
||||||
@ -19,14 +20,10 @@ env:
|
|||||||
- COVER=true
|
- COVER=true
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
install:
|
|
||||||
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
|
|
||||||
- sudo apt-get update -q
|
|
||||||
- sudo apt-get install bitcoind -y
|
|
||||||
- export PATH=$PATH:$PWD/linux-amd64/
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- export GO111MODULE=on
|
- export GO111MODULE=on
|
||||||
|
- bash ./scripts/install_bitcoind.sh
|
||||||
|
|
||||||
# Run unit tests with race condition detector.
|
# Run unit tests with race condition detector.
|
||||||
- 'if [ "$RACE" = true ]; then make travis-race ; fi'
|
- 'if [ "$RACE" = true ]; then make travis-race ; fi'
|
||||||
|
16
scripts/install_bitcoind.sh
Executable file
16
scripts/install_bitcoind.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/env bash
|
||||||
|
|
||||||
|
export BITCOIND_VERSION=0.17.1
|
||||||
|
|
||||||
|
if sudo cp ~/bitcoin/bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind
|
||||||
|
then echo "bitcoind installed"
|
||||||
|
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 && \
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user