Skip to content

Commit

Permalink
GitVersion workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Hindulak committed Jul 16, 2019
1 parent b6860fe commit 7ec9e63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -euo pipefail
export VERSION=ci
export FULL_VERSION=ci-full
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
# GitVersion fix: https://github.com/GitTools/GitVersion/issues/1671#issuecomment-508198452
git remote set-branches --add origin master
git checkout --track origin/master
git checkout "${TRAVIS_BRANCH}"

VERSION=$(docker run -it --rm -v "$(pwd):/repo" gittools/gitversion:5.0.0-linux-debian-9-netcoreapp2.2 /repo /showvariable NuGetVersionV2 | tee /dev/tty)
FULL_VERSION=$(docker run -it --rm -v "$(pwd):/repo" gittools/gitversion:5.0.0-linux-debian-9-netcoreapp2.2 /repo /showvariable InformationalVersion | tee /dev/tty)
fi
Expand Down

0 comments on commit 7ec9e63

Please sign in to comment.