mirror of
https://github.com/libretro/libretro-super
synced 2025-02-03 20:54:12 +00:00
libretro-buildbot-recipe.sh: Don't remove branches if travis is running the script.
This commit is contained in:
parent
fe1db129dc
commit
0f107ce404
@ -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}"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user