From 68231382bd08358b7be61ffe8c2b51820208a7db Mon Sep 17 00:00:00 2001 From: Frederic Boismenu Date: Tue, 20 Feb 2018 16:05:24 +0100 Subject: [PATCH] Debug info for computed and actual version --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6fe3e6eecb88..1ca8dee2d2cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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