Skip to content

Commit

Permalink
Fixing version test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyr committed Jul 31, 2019
1 parent 919eb5c commit 9bb723c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ before_script:
- golint -set_exit_status ./...
- go vet ./... | grep ':' && false || true
- go test -v -cover ./...
- if [ -n "$TRAVIS_TAG" ]; then go install github.com/jtyr/gbt/cmd/gbt && $GOPATH/bin/gbt -version | egrep " $TRAVIS_TAG, build ${TRAVIS_COMMIT::6}\$"; fi
- >-
if [ -n "$TRAVIS_TAG" ]; then
CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${TRAVIS_TAG:1} -X main.build=${TRAVIS_COMMIT::6}" -o $GOPATH/bin/gbt ./cmd/gbt;
$GOPATH/bin/gbt -version | egrep " ${TRAVIS_TAG:1}, build ${TRAVIS_COMMIT::6}\$";
fi
script:
- go install github.com/jtyr/gbt/cmd/gbt
Expand Down

0 comments on commit 9bb723c

Please # to comment.