travis: retrieve btcd version from dep's manifest file

This commit is contained in:
Wilmer Paulino 2018-03-04 15:51:29 -05:00
parent 8564da5723
commit a2ad7a51ba
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ install:
- 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/
- BTCD_VERSION=$(cat glide.yaml | grep -A1 btcd | tail -n1 | awk '{ print $2}')
- 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