Restored branch removal and added some debug
This commit is contained in:
@@ -16,6 +16,9 @@ git remote set-url origin "https://${GH_TOKEN}@github.com/WagicProject/wagic.git
|
|||||||
## Delete remote Travis-Mac branch (if any)
|
## Delete remote Travis-Mac branch (if any)
|
||||||
export REMOTE=$(git branch -r | grep "origin/$TRAVIS_MAC_BRANCH")
|
export REMOTE=$(git branch -r | grep "origin/$TRAVIS_MAC_BRANCH")
|
||||||
if test -n "$REMOTE" ; then
|
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)
|
# Push (delete) remote branch on temote server (e.g. github)
|
||||||
git push origin --delete "$TRAVIS_MAC_BRANCH"
|
git push origin --delete "$TRAVIS_MAC_BRANCH"
|
||||||
fi
|
fi
|
||||||
@@ -26,7 +29,6 @@ git checkout -q -b "$TRAVIS_MAC_BRANCH" "$TRAVIS_BRANCH"
|
|||||||
## Write a new Travis-CI configuration file
|
## Write a new Travis-CI configuration file
|
||||||
cp tools/macos.travis.yml .travis.yml
|
cp tools/macos.travis.yml .travis.yml
|
||||||
git add .travis.yml
|
git add .travis.yml
|
||||||
git rm appveyor.yml
|
|
||||||
git commit -m "Auto-Updated Travis-CI configuration for Mac"
|
git commit -m "Auto-Updated Travis-CI configuration for Mac"
|
||||||
## Push new branch to remote server
|
## Push new branch to remote server
|
||||||
git push -q origin $TRAVIS_MAC_BRANCH:$TRAVIS_MAC_BRANCH 2> /dev/null > /dev/null
|
git push -q origin $TRAVIS_MAC_BRANCH:$TRAVIS_MAC_BRANCH 2> /dev/null > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user