From 8040ee42120b8c4dd7beefe4a2baae7f00832b8d Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Mon, 8 Aug 2016 15:13:12 +0200 Subject: [PATCH] Only the master can move the nightlies tag. --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a4d28688..fdb0d547 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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