Skip to content

Commit 8dbc273

Browse files
Vincent HouYing Chun Guo
authored andcommitted
Revert the Travis build due to the recent failures
We need to add the latest build back in order to keep the build consistent.
1 parent efa19bb commit 8dbc273

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,25 @@ script:
7171

7272
after_success:
7373
- export DEPLOY_BUILD_READY=true
74+
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ] ; then
75+
export DEPLOY_BUILD_READY=false;
76+
fi
7477

7578
before_deploy:
7679
- export RELEASE_PKG_FILE="$(cd "$TRAVIS_BUILD_DIR/release" && ls ${zip_file_name}-*.tgz ${zip_file_name}-*.zip)"
7780
- echo "Deploying $RELEASE_PKG_FILE to GitHub releases."
7881
- export GIT_TAG="latest"
7982
- export TAG=false;
83+
# This tag is automatically generated for the latest merged commit in master branch.
84+
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ "$TRAVIS_OS_NAME" == "linux" ] ; then
85+
git config --global user.email "builds@travis-ci.com";
86+
git config --global user.name "Travis CI";
87+
export GIT_TAG="latest";
88+
git tag -d $GIT_TAG;
89+
git push -q https://$API_KEY@github.com/apache/incubator-openwhisk-cli :refs/tags/$GIT_TAG;
90+
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag $GIT_TAG -a -m "Generated tag from Travis CI build $TRAVIS_BUILD_NUMBER";
91+
git push -f -q https://$API_KEY@github.com/apache/incubator-openwhisk-cli $GIT_TAG;
92+
fi
8093
- if [ ! -z "$TRAVIS_TAG" ] ; then
8194
export GIT_TAG=$TRAVIS_TAG;
8295
export TAG=true;

0 commit comments

Comments
 (0)