Skip to content

Commit

Permalink
Debug info for computed and actual version
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Boismenu committed Feb 20, 2018
1 parent e91c652 commit 6823138
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ env:
script:
- find . -type f -name "*go" | xargs sed 's|github.com/hashicorp/consul|github.com/criteo-forks/consul|' -i
- make
- echo "Checking version of Consul:"
- ./bin/consul --version
sudo: false
before_deploy:
- export VERSION=$(echo $TRAVIS_TAG | sed 's/^v//' )
- export PRERELEASE=$(echo $VERSION | cut -d '-' -f 2)
- sed -i "s/VersionPrerelease = \".*\"/VersionPrerelease = \"$PRERELEASE\"/" version/version.go
- echo "deploying $VERSION to GitHub releases"
- echo "Deploying $VERSION(-$PRERELEASE) to GitHub releases"
- for d in $(find ./pkg -type d -maxdepth 1 -mindepth 1 | cut -d '/' -f3); do zip -j consul_${VERSION}_${d}.zip ./pkg/${d}/consul* ; done
deploy:
provider: releases
Expand Down

0 comments on commit 6823138

Please sign in to comment.