travis: update to use make travis
This commit is contained in:
parent
5335c960f3
commit
fa6271c8d4
21
.travis.yml
21
.travis.yml
@ -1,34 +1,19 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.9.4
|
- "1.9.4"
|
||||||
- "1.10"
|
- "1.10"
|
||||||
sudo: required
|
sudo: required
|
||||||
install:
|
install:
|
||||||
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
|
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
|
||||||
- sudo apt-get update -q
|
- sudo apt-get update -q
|
||||||
- sudo apt-get install bitcoind -y
|
- sudo apt-get install bitcoind -y
|
||||||
- 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/
|
- export PATH=$PATH:$PWD/linux-amd64/
|
||||||
- BTCD_VERSION=$(cat Gopkg.toml | grep -A1 btcd | tail -n1 | awk '{ print $3 }' | tr -d '"')
|
|
||||||
- mkdir -p $GOPATH/src/github.com/roasbeef/
|
|
||||||
- pushd $GOPATH/src/github.com/roasbeef/
|
|
||||||
- git clone https://github.com/roasbeef/btcd
|
|
||||||
- pushd btcd
|
|
||||||
- git checkout $BTCD_VERSION
|
|
||||||
- glide install
|
|
||||||
- go install . ./cmd/...
|
|
||||||
- popd
|
|
||||||
- popd
|
|
||||||
env:
|
env:
|
||||||
global:
|
|
||||||
- LOGS=true
|
|
||||||
matrix:
|
matrix:
|
||||||
- RACE=false
|
- RACE=false
|
||||||
- RACE=true
|
- RACE=true
|
||||||
script:
|
script:
|
||||||
- export PATH=$PATH:$HOME/gopath/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- ./gotest.sh
|
- make travis
|
||||||
after_script:
|
after_script:
|
||||||
- find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
|
- find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
|
||||||
|
Loading…
Reference in New Issue
Block a user