MOBILE-3401 travis: Add exit errors
parent
8c683d6f05
commit
7fdfb94c07
|
@ -60,12 +60,18 @@ if [ "$TRAVIS_BRANCH" == 'master' ]; then
|
||||||
git commit -m 'Update licenses [ci skip]'
|
git commit -m 'Update licenses [ci skip]'
|
||||||
|
|
||||||
git push origin HEAD:$TRAVIS_BRANCH
|
git push origin HEAD:$TRAVIS_BRANCH
|
||||||
|
check_success_exit "Unsuccessful push, stopping..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_BRANCH" == 'integration' ] || [ "$TRAVIS_BRANCH" == 'master' ] || [ "$TRAVIS_BRANCH" == 'desktop' ] ; then
|
if [ "$TRAVIS_BRANCH" == 'integration' ] || [ "$TRAVIS_BRANCH" == 'master' ] || [ "$TRAVIS_BRANCH" == 'desktop' ] ; then
|
||||||
print_title "Mirror repository"
|
print_title "Mirror repository"
|
||||||
git remote add mirror https://$GIT_TOKEN@github.com/$GIT_ORG_PRIVATE/moodleapp.git
|
git remote add mirror https://$GIT_TOKEN@github.com/$GIT_ORG_PRIVATE/moodleapp.git
|
||||||
git fetch -q --unshallow mirror
|
git fetch -q --unshallow mirror
|
||||||
|
check_success_exit "Unsuccessful fetch, stopping..."
|
||||||
|
git fetch -q --unshallow origin
|
||||||
|
check_success_exit "Unsuccessful fetch, stopping..."
|
||||||
git push -f mirror HEAD:$TRAVIS_BRANCH
|
git push -f mirror HEAD:$TRAVIS_BRANCH
|
||||||
|
check_success_exit "Unsuccessful mirror, stopping..."
|
||||||
git push -f mirror --tags
|
git push -f mirror --tags
|
||||||
|
check_success_exit "Unsuccessful mirror tags, stopping..."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue