mirror of
https://github.com/libretro/libretro-super
synced 2025-01-05 21:54:33 +00:00
improve logging
This commit is contained in:
parent
5be13b02e5
commit
9e11f9d907
@ -210,7 +210,7 @@ build_libretro_generic_makefile() {
|
||||
echo "compiling..."
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} &> /tmp/buildbot.log
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
else
|
||||
if [ "${NAME}" = "mame2010" ]; then
|
||||
|
||||
@ -218,7 +218,7 @@ build_libretro_generic_makefile() {
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} buildtools
|
||||
fi
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} &> /tmp/buildbot.log
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
@ -230,13 +230,15 @@ build_libretro_generic_makefile() {
|
||||
if [ "${PLATFORM}" = "windows" ]; then
|
||||
strip -s ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
fi
|
||||
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} &> /tmp/buildbot.log
|
||||
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
JOBS=$OLDJ
|
||||
}
|
||||
@ -268,21 +270,22 @@ build_libretro_leiradel_makefile() {
|
||||
|
||||
echo "compiling..."
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS}"
|
||||
${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS} &> /tmp/buildbot.log
|
||||
${MAKE} -f ${MAKEFILE}.${ARGS} platform=${PLATFORM} -j${JOBS} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1 build successful [$jobid]"
|
||||
if [ "${PLATFORM}" = "android" ]; then
|
||||
cp -v ${NAME}_libretro${FORMAT}.${ARGS}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${ARGS}/${NAME}_libretro${SUFFIX}${FORMAT}.${FORMAT_EXT} &>> /tmp/buildbot.log
|
||||
cp -v ${NAME}_libretro${FORMAT}.${ARGS}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${ARGS}/${NAME}_libretro${SUFFIX}${FORMAT}.${FORMAT_EXT} &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
else
|
||||
cp -v ${NAME}_libretro${FORMAT}.${ARGS}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${SUFFIX}${FORMAT}.${FORMAT_EXT} &>> /tmp/buildbot.log
|
||||
cp -v ${NAME}_libretro${FORMAT}.${ARGS}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${SUFFIX}${FORMAT}.${FORMAT_EXT} &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
fi
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
JOBS=$OLDJ
|
||||
}
|
||||
@ -325,11 +328,12 @@ build_libretro_generic_theos() {
|
||||
MESSAGE="$1 build successful [$jobid]"
|
||||
cp -v objs/obj/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
}
|
||||
|
||||
@ -360,10 +364,10 @@ build_libretro_generic_jni() {
|
||||
echo "compiling for ${a}..."
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
||||
${NDK} -j${JOBS} APP_ABI=${a} &> /tmp/buildbot.log
|
||||
${NDK} -j${JOBS} APP_ABI=${a} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}_${a}.log
|
||||
else
|
||||
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} "
|
||||
${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} &> /tmp/buildbot.log
|
||||
${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}_${a}.log
|
||||
fi
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1-$a build successful [$jobid]"
|
||||
@ -371,10 +375,11 @@ build_libretro_generic_jni() {
|
||||
buildbot_log "$MESSAGE"
|
||||
cp -v ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}_${a}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1-$a build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
fi
|
||||
done
|
||||
@ -418,11 +423,12 @@ build_libretro_bsnes_jni() {
|
||||
MESSAGE="$1 build successful [$jobid]"
|
||||
cp -v ../libs/${a}/libretro_${CORENAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_${PROFILE}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
done
|
||||
}
|
||||
@ -456,21 +462,22 @@ build_libretro_generic_gl_makefile() {
|
||||
echo "compiling..."
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} &> /tmp/buildbot.log
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
else
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} &> /tmp/buildbot.log
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1 build successful [$jobid]"
|
||||
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
|
||||
reset_compiler_targets
|
||||
@ -527,11 +534,12 @@ build_libretro_bsnes() {
|
||||
cp -fv "out/${NAME}_${PROFILE}_libretro${FORMAT}.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
fi
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="$1 build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
}
|
||||
|
||||
@ -891,22 +899,23 @@ if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
|
||||
cd android/phoenix
|
||||
rm bin/*.apk
|
||||
|
||||
$NDK clean &> /tmp/buildbot.log
|
||||
$NDK -j${JOBS} &>> /tmp/buildbot.log
|
||||
ant clean &>> /tmp/buildbot.log
|
||||
android update project --path . --target android-22 &>> /tmp/buildbot.log
|
||||
android update project --path libs/googleplay --target android-21 &>> /tmp/buildbot.log
|
||||
android update project --path libs/appcompat --target android-21 &>> /tmp/buildbot.log
|
||||
ant debug &>> /tmp/buildbot.log
|
||||
$NDK clean &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
$NDK -j${JOBS} &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
ant clean &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
android update project --path . --target android-22 &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
android update project --path libs/googleplay --target android-21 &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
android update project --path libs/appcompat --target android-21 &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
ant debug &>> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="retroarch build successful [$jobid]"
|
||||
echo $MESSAGE
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
echo $MESSAGE
|
||||
fi
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
fi
|
||||
fi
|
||||
@ -1163,12 +1172,13 @@ echo b=$BUILD f=$FORCE
|
||||
|
||||
echo "building..."
|
||||
echo "build command: $MAKE -j${JOBS}"
|
||||
$MAKE -j${JOBS} &> /tmp/buildbot.log
|
||||
$MAKE -j${JOBS} &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
strip -s retroarch.exe
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="retroarch build successful [$jobid]"
|
||||
echo $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
|
||||
echo "Packaging"
|
||||
@ -1243,10 +1253,11 @@ EOF
|
||||
cp -rf gfx/video_filters/*.dll windows/filters/video
|
||||
cp -rf gfx/video_filters/*.filt windows/filters/video
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
echo $MESSAGE
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
buildbot_log "$MESSAGE"
|
||||
fi
|
||||
fi
|
||||
@ -1352,17 +1363,18 @@ if [ "${PLATFORM}" = "psp1" ] && [ "${RA}" = "YES" ]; then
|
||||
cp -v $RARCH_DIST_DIR/*.a .
|
||||
#ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_psp1." $2 }' |sh
|
||||
|
||||
./psp1-cores.sh &> /tmp/buildbot.log
|
||||
./psp1-cores.sh &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="retroarch build successful [$jobid]"
|
||||
echo $MESSAGE
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
echo $MESSAGE
|
||||
fi
|
||||
buildbot_log "$MESSAGE"
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
|
||||
echo "Packaging"
|
||||
echo ============================================
|
||||
@ -1483,17 +1495,18 @@ if [ "${PLATFORM}" == "wii" ] && [ "${RA}" == "YES" ]; then
|
||||
cp -v $RARCH_DIST_DIR/*.a .
|
||||
|
||||
#ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_wii." $2 }' |sh
|
||||
sh ./wii-cores.sh &> /tmp/buildbot.log
|
||||
sh ./wii-cores.sh &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="retroarch build successful [$jobid]"
|
||||
echo $MESSAGE
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
echo $MESSAGE
|
||||
fi
|
||||
buildbot_log "$MESSAGE"
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
cd $WORK/$RADIR
|
||||
fi
|
||||
|
||||
@ -1633,18 +1646,19 @@ then
|
||||
cp -v $RARCH_DIST_DIR/*.a .
|
||||
|
||||
#ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_ngc." $2 }' |sh
|
||||
sh ./ngc-cores.sh &> /tmp/buildbot.log
|
||||
sh ./ngc-cores.sh &> /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
MESSAGE="retroarch build successful [$jobid]"
|
||||
echo $MESSAGE
|
||||
else
|
||||
ERROR=`cat /tmp/buildbot.log | tail -n 100`
|
||||
ERROR=`cat /tmp/log/`date +%Y-%m-%d`_${NAME}_${PLATFORM}.log | tail -n 100`
|
||||
HASTE=`curl -XPOST http://hastebin.com/documents -d"$ERROR" | cut --fields=4 --delimiter='"'`
|
||||
MESSAGE="retroarch build failed [$jobid] LOG: http://hastebin.com/$HASTE"
|
||||
echo $MESSAGE
|
||||
fi
|
||||
buildbot_log "$MESSAGE"
|
||||
echo BUILDBOT JOB: $MESSAGE >> /tmp/log/`date +%Y-%m-%d`_SUMMARY.log
|
||||
cd ..
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user