Only the master can move the nightlies tag.

This commit is contained in:
Vassil Vassilev 2016-08-08 15:13:12 +02:00 committed by sftnight
parent 9a3bed59b1
commit 8040ee4212

View File

@ -137,9 +137,11 @@ before_script:
script:
- |
if [ -z $TRAVIS_TAG ]; then
# Move the tag to newest master
git tag --force cling-nightlies HEAD
git push --force https://$OAUTH_TOKEN@github.com/${TRAVIS_REPO_SLUG} cling-nightlies
if [ "$TRAVIS_BRANCH" == "master" ]; then
# Move the tag to newest master
git tag --force cling-nightlies HEAD
git push --force https://$OAUTH_TOKEN@github.com/${TRAVIS_REPO_SLUG} cling-nightlies
fi
timeout $TIMEOUT tools/packaging/cpt.py --current-dev=tar --with-cling-url=https://github.com/$TRAVIS_REPO_SLUG --verbose --debug-on-error
else