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 8c7bd6b Avoid releasing artifacts by Travis builds of CRON (#878)
8c7bd6b is described below
commit 8c7bd6b9bf48b0d4fb2f007c26e9e5c5a63bff82
Author: Vincent <[email protected]>
AuthorDate: Tue Apr 24 13:54:00 2018 -0400
Avoid releasing artifacts by Travis builds of CRON (#878)
There is no need to push new released artifacts by the Travis
build of CRON job. This PR sets the variable DEPLOY_BUILD_READY
to false, if the Travis build is based on CRON.
---
.travis.yml | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 4ac1237..fbfde3a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,6 +50,9 @@ script:
- "./tools/travis/script.sh"
after_success:
- DEPLOY_BUILD_READY=true
+- if [ "$TRAVIS_EVENT_TYPE" == "cron" ] ; then
+ export DEPLOY_BUILD_READY=false;
+ fi
after_script:
- make clean
@@ -58,10 +61,6 @@ 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
- "./tools/travis/build_tag_releases.sh $build_file_name $GIT_TAG"
- ./gradlew --console=plain releaseBinaries -PpackageVersion=$GIT_TAG
- export RELEASE_PKG_FILE="$(cd "$TRAVIS_BUILD_DIR/release" && ls
${zip_file_name}-*.tgz ${zip_file_name}-*.zip)"
@@ -74,6 +73,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://[email protected]/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."
--
To stop receiving notification emails like this one, please contact
[email protected].