Skip to content

Commit

Permalink
Set custom version during travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
tionebsalocin committed Dec 6, 2019
1 parent 2c9aa20 commit 2351afa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ env:


script:
- export VERSION=$(echo $TRAVIS_TAG | sed 's/^v//' )
- export PRERELEASE=$(echo $VERSION | cut -d '-' -f 2)
- sed -i "s/VersionPrerelease = \".*\"/VersionPrerelease = \"$PRERELEASE\"/" version/version_base.go
- make bootstrap
- eval $TEST_COMMAND
before_deploy:
Expand Down

0 comments on commit 2351afa

Please # to comment.