always clean after building

This commit is contained in:
radius 2015-11-01 12:28:14 -05:00
parent 9fe57cde9d
commit 468bc4e32a
1 changed files with 59 additions and 0 deletions

View File

@ -366,6 +366,17 @@ build_libretro_leiradel_makefile() {
echo BUILDBOT JOB: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}.log echo BUILDBOT JOB: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}.log
buildbot_log "$MESSAGE" buildbot_log "$MESSAGE"
JOBS=$OLDJ JOBS=$OLDJ
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
echo "cleanup command: ${MAKE} -f ${MAKEFILE}.${PLATFORM}_${ARGS} platform=${PLATFORM}_${ARGS} -j${JOBS} clean"
${MAKE} -f ${MAKEFILE}.${PLATFORM}_${ARGS} platform=${PLATFORM}_${ARGS} -j${JOBS} clean
if [ $? -eq 0 ]; then
echo BUILDBOT JOB: $jobid $1 cleanup success!
else
echo BUILDBOT JOB: $jobid $1 cleanup failed!
fi
fi
} }
# command for jni makefiles # command for jni makefiles
@ -429,6 +440,17 @@ build_libretro_generic_jni() {
fi fi
fi fi
done done
for a in "${ABIS[@]}"; do
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
echo "cleanup command: ${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean"
${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean
if [ $? -eq 0 ]; then
echo BUILDBOT JOB: $jobid $a $1 cleanup success!
else
echo BUILDBOT JOB: $jobid $a $1 cleanup failed!
fi
fi
} }
# command for bsnes jni makefiles # command for bsnes jni makefiles
@ -481,6 +503,17 @@ build_libretro_bsnes_jni() {
echo BUILDBOT JOB: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}.log echo BUILDBOT JOB: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}.log
buildbot_log "$MESSAGE" buildbot_log "$MESSAGE"
done done
for a in "${ABIS[@]}"; do
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
echo "cleanup command: ${NDK} -j${JOBS} APP_ABI=${a} clean"
${NDK} -j${JOBS} APP_ABI=${a} clean
if [ $? -eq 0 ]; then
echo BUILDBOT JOB: $jobid $1 cleanup success!
else
echo BUILDBOT JOB: $jobid $1 cleanup failed!
fi
fi
} }
# command for gl cores, not sure if this is still needed but it uses an alternate format_compiler_target # command for gl cores, not sure if this is still needed but it uses an alternate format_compiler_target
@ -533,6 +566,16 @@ build_libretro_generic_gl_makefile() {
buildbot_log "$MESSAGE" buildbot_log "$MESSAGE"
reset_compiler_targets reset_compiler_targets
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean"
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean
if [ $? -eq 0 ]; then
echo BUILDBOT JOB: $jobid $1 cleanup success!
else
echo BUILDBOT JOB: $jobid $1 cleanup failed!
fi
fi
} }
# command for bsnes # command for bsnes
@ -601,6 +644,22 @@ build_libretro_bsnes() {
echo BUILDBOT JOB: $MESSAGE echo BUILDBOT JOB: $MESSAGE
echo BUILDBOT JOB: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}.log echo BUILDBOT JOB: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}.log
buildbot_log "$MESSAGE" buildbot_log "$MESSAGE"
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
rm -f obj/*.{o,"${FORMAT_EXT}"}
rm -f out/*.{o,"${FORMAT_EXT}"}
if [ "${PROFILE}" = "cpp98" -o "${PROFILE}" = "bnes" ]; then
${MAKE} clean
fi
if [ $? -eq 0 ]; then
echo BUILDBOT JOB: $jobid $1 cleanup success!
else
echo BUILDBOT JOB: $jobid $1 cleanup failed!
fi
fi
} }