Restored branch removal and added some debug

This commit is contained in:
Xawotihs
2015-08-16 18:24:57 +02:00
parent 2a1cb03484
commit 7d8fdbfd58

View File

@@ -16,6 +16,9 @@ git remote set-url origin "https://${GH_TOKEN}@github.com/WagicProject/wagic.git
## Delete remote Travis-Mac branch (if any)
export REMOTE=$(git branch -r | grep "origin/$TRAVIS_MAC_BRANCH")
if test -n "$REMOTE" ; then
echo "Removing old $TRAVIS_MAC_BRANCH branch"
# Delete remote branch
git branch -r -D "origin/$TRAVIS_MAC_BRANCH"
# Push (delete) remote branch on temote server (e.g. github)
git push origin --delete "$TRAVIS_MAC_BRANCH"
fi
@@ -26,7 +29,6 @@ git checkout -q -b "$TRAVIS_MAC_BRANCH" "$TRAVIS_BRANCH"
## Write a new Travis-CI configuration file
cp tools/macos.travis.yml .travis.yml
git add .travis.yml
git rm appveyor.yml
git commit -m "Auto-Updated Travis-CI configuration for Mac"
## Push new branch to remote server
git push -q origin $TRAVIS_MAC_BRANCH:$TRAVIS_MAC_BRANCH 2> /dev/null > /dev/null