libretro-buildbot-recipe.sh: Don't remove branches if travis is running the script.

This commit is contained in:
orbea 2017-12-03 13:05:16 -08:00
parent fe1db129dc
commit 0f107ce404
3 changed files with 3 additions and 1 deletions

View file

@ -752,7 +752,7 @@ while read line; do
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [ "${GIT_BRANCH}" != "${CURRENT_BRANCH}" ]; then
if [ "${GIT_BRANCH}" != "${CURRENT_BRANCH}" ] && [ "${TRAVIS:-0}" = "0" ]; then
echo "Changing to the branch ${GIT_BRANCH} from ${CURRENT_BRANCH}"
git remote set-branches origin "${GIT_BRANCH}"
git fetch --depth 1 origin "${GIT_BRANCH}"

View file

@ -4,6 +4,7 @@ export LOGDATE=`date +%Y-%m-%d`
mkdir -p /tmp/log/${LOGDATE}
export BOT=.
export TMPDIR=/tmp
export TRAVIS=1
export EXIT_ON_ERROR=1
# taken from https://stackoverflow.com/questions/26082444/how-to-work-around-travis-cis-4mb-output-limit

View file

@ -4,6 +4,7 @@ export LOGDATE=`date +%Y-%m-%d`
mkdir -p /tmp/log/${LOGDATE}
export BOT=.
export TMPDIR=/tmp
export TRAVIS=1
export EXIT_ON_ERROR=1
./build-${PLATFORM}.sh