openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject [incubator-openwhisk-wskdeploy] branch master updated: Fix the issue to generate artifacts with tag name (#960)
Date Tue, 24 Jul 2018 18:59:10 GMT
This is an automated email from the ASF dual-hosted git repository.

pdesai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d82d34  Fix the issue to generate artifacts with tag name (#960)
2d82d34 is described below

commit 2d82d344bdd7bcc5823e23901b6b8be4e914cbb3
Author: Vincent <shou@us.ibm.com>
AuthorDate: Tue Jul 24 14:59:08 2018 -0400

    Fix the issue to generate artifacts with tag name (#960)
---
 .travis.yml | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 4eee708..dc9f932 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -48,6 +48,10 @@ before_deploy:
 - go get github.com/inconshreveable/mousetrap
 - export GIT_TAG="latest"
 - export TAG=false
+- if [ ! -z "$TRAVIS_TAG" ] ; then
+      export GIT_TAG=$TRAVIS_TAG;
+      export TAG=true;
+  fi
 - ./gradlew --console=plain releaseBinaries -PpackageVersion=$GIT_TAG
 - "./tools/travis/build_tag_releases.sh $build_file_name $GIT_TAG"
 - export RELEASE_PKG_FILE="$(cd "$TRAVIS_BUILD_DIR/release" && ls ${zip_file_name}-*.tgz
${zip_file_name}-*.zip)"
@@ -60,12 +64,10 @@ before_deploy:
       GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag $GIT_TAG -a -m "Generated
tag from Travis CI build $TRAVIS_BUILD_NUMBER";
       git push -f -q https://$API_KEY@github.com/apache/incubator-openwhisk-wskdeploy $GIT_TAG;
   fi
-- if [ ! -z "$TRAVIS_TAG" ] ; then
-      export GIT_TAG=$TRAVIS_TAG;
-      export TAG=true;
-  fi
-- echo "The event type is $TRAVIS_EVENT_TYPE."
-- echo "The GIT_TAG of this Travis build is $GIT_TAG."
+- echo "TRAVIS_EVENT_TYPE is "
+- echo $TRAVIS_EVENT_TYPE
+- echo "GIT_TAG is "
+- echo $GIT_TAG
 
 deploy:
 - provider: releases


Mime
View raw message