2016-06-09 01:12:13 +03:00
|
|
|
language: go
|
|
|
|
go:
|
2018-02-20 04:30:51 +03:00
|
|
|
- 1.9.4
|
|
|
|
- "1.10"
|
2018-01-17 19:07:31 +03:00
|
|
|
sudo: required
|
2016-07-26 02:39:22 +03:00
|
|
|
install:
|
2018-01-17 19:07:31 +03:00
|
|
|
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
|
|
|
|
- sudo apt-get update -q
|
|
|
|
- sudo apt-get install bitcoind -y
|
2017-06-21 17:12:53 +03:00
|
|
|
- GLIDE_TAG=v0.12.3
|
|
|
|
- GLIDE_DOWNLOAD="https://github.com/Masterminds/glide/releases/download/$GLIDE_TAG/glide-$GLIDE_TAG-linux-amd64.tar.gz"
|
|
|
|
- curl -L $GLIDE_DOWNLOAD | tar -xvz
|
|
|
|
- export PATH=$PATH:$PWD/linux-amd64/
|
2018-03-04 23:51:29 +03:00
|
|
|
- BTCD_VERSION=$(cat Gopkg.toml | grep -A1 btcd | tail -n1 | awk '{ print $3 }' | tr -d '"')
|
2017-06-21 17:12:53 +03:00
|
|
|
- mkdir -p $GOPATH/src/github.com/roasbeef/
|
|
|
|
- pushd $GOPATH/src/github.com/roasbeef/
|
|
|
|
- git clone https://github.com/roasbeef/btcd
|
|
|
|
- pushd btcd
|
2017-11-21 00:56:00 +03:00
|
|
|
- git checkout $BTCD_VERSION
|
2017-06-21 17:12:53 +03:00
|
|
|
- glide install
|
|
|
|
- go install . ./cmd/...
|
|
|
|
- popd
|
|
|
|
- popd
|
2017-07-05 02:05:05 +03:00
|
|
|
env:
|
2017-10-18 01:42:22 +03:00
|
|
|
global:
|
|
|
|
- LOGS=true
|
|
|
|
matrix:
|
|
|
|
- RACE=false
|
|
|
|
- RACE=true
|
2016-07-26 02:39:22 +03:00
|
|
|
script:
|
|
|
|
- export PATH=$PATH:$HOME/gopath/bin
|
2017-07-05 02:05:05 +03:00
|
|
|
- ./gotest.sh
|
2017-10-18 01:42:22 +03:00
|
|
|
after_script:
|
|
|
|
- find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
|