From 3a0d4e78aec125c54ef37aa7001f23c5b6057c2d Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 20 Nov 2017 13:56:00 -0800 Subject: [PATCH] travis.yml: build btcd version from glide.yaml for use in integration tests --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 268da43a..07169dbb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,12 @@ 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}') - 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