libretro-super/libretro-buildbot-recipe.sh

1970 lines
64 KiB
Bash
Raw Normal View History

# vim: set ts=3 sw=3 noet ft=sh : bash
2016-03-18 04:16:42 +00:00
# ----- setup -----
2015-07-26 01:25:59 +00:00
LOGDATE=`date +%Y-%m-%d`
ORIGPATH=$PATH
2014-12-17 23:59:08 +00:00
WORK=$PWD
2016-03-18 04:13:41 +00:00
RECIPE=$1
2016-03-22 22:36:43 +00:00
BRANCH=""
2016-01-14 23:16:40 +00:00
# ----- read variables from recipe config -----
while read line; do
KEY=`echo $line | cut -f 1 -d " "`
2016-08-28 03:49:49 +00:00
VALUE=`echo $line | cut -f 2 -d " "`
if [ "${KEY}" = "PATH" ]; then
export PATH=${VALUE}:${ORIGPATH}
else
export ${KEY}=${VALUE}
fi
2016-08-11 05:07:57 +00:00
echo Setting: ${KEY} ${VALUE}
2015-03-09 12:23:17 +00:00
done < $1.conf
read_link()
{
TARGET_FILE="$1"
cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE")
while [ -L "$TARGET_FILE" ]; do
TARGET_FILE=$(readlink "$TARGET_FILE")
cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE")
done
PHYS_DIR=$(pwd -P)
RESULT="$PHYS_DIR/$TARGET_FILE"
echo $RESULT
}
convert_xmb_assets()
{
local src_dir=$1
local dst_dir=$2
local scale_icon=$3
local scale_bg=$4
# dots per inch, a value of 90 seems to produce a 64x64 resolution for most icons
local density=$5
mkdir -p "$dst_dir"
IFS_old=$IFS
IFS=$(echo -en "\n\b")
for theme in `ls $src_dir`; do
if [ -d $src_dir/$theme ] ; then
theme=`basename "$theme"`
2016-10-11 00:03:27 +00:00
cp $src_dir/$theme/*.* $dst_dir/$theme/
mkdir -p "$dst_dir/$theme/png"
for png in `ls $src_dir/$theme/png/*.png -d`; do
local name=`basename "$png" .png`
local src_file="$src_dir/$theme/src/$name.svg"
local is_svg=1
if [ ! -e $src_file ] ; then
src_file="$src_dir/$theme/png/$name.png"
is_svg=
fi
local dst_file="$dst_dir/$theme/png/$name.png"
if [ ! -e $src_file ] || [ $src_file -nt $dst_file ] ; then
local scale_factor=$scale_icon
if [ $name = "bg" ] ; then
scale_factor=$scale_bg
fi
if [ $is_svg ] ; then
echo convert -background none -density $density "$src_file" -resize $scale_factor "$dst_file"
convert -background none -density $density "$src_file" -resize $scale_factor "$dst_file"
else
echo convert -background none "$src_file" -resize $scale_factor "$dst_file"
convert -background none "$src_file" -resize $scale_factor "$dst_file"
fi
fi
done
fi
done
IFS=$IFS_old
}
2016-01-14 23:16:40 +00:00
if [ "${CORE_JOB}" == "YES" ]; then
2016-01-18 17:59:40 +00:00
# ----- set target -----
[[ "${ARM_NEON}" ]] && echo 'ARM NEON opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-neon"
[[ "${CORTEX_A8}" ]] && echo 'Cortex A8 opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-cortexa8"
[[ "${CORTEX_A9}" ]] && echo 'Cortex A9 opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-cortexa9"
[[ "${ARM_HARDFLOAT}" ]] && echo 'ARM hardfloat ABI enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-hardfloat"
[[ "${ARM_SOFTFLOAT}" ]] && echo 'ARM softfloat ABI enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-softfloat"
[[ "${IOS}" ]] && echo 'iOS detected...'
. $WORK/libretro-config.sh
2016-01-14 23:16:40 +00:00
# ----- create dirs -----
SCRIPT=$(read_link "$0")
echo "SCRIPT: $SCRIPT"
BASE_DIR=$(dirname "$SCRIPT")
if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="$BASE_DIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
fi
mkdir -v -p "$RARCH_DIST_DIR"
if [ "${PLATFORM}" = "android" ]; then
IFS=' ' read -ra ABIS <<< "$TARGET_ABIS"
for a in "${ABIS[@]}"; do
echo $a
if [ -d $RARCH_DIST_DIR/${a} ]; then
echo "Directory $RARCH_DIST_DIR/${a} already exists, skipping creation..."
else
mkdir $RARCH_DIST_DIR/${a}
fi
done
fi
2016-01-18 17:59:40 +00:00
# ----- set compilers -----
if [ "$HOST_CC" ]; then
CC="${HOST_CC}-gcc"
CXX="${HOST_CC}-g++"
CXX11="${HOST_CC}-g++"
STRIP="${HOST_CC}-strip"
fi
2016-08-28 03:49:49 +00:00
if [ -z "${HELPER} ${MAKE}" ]; then
if uname -s | grep -i MINGW32 > /dev/null 2>&1; then
MAKE=mingw32-make
else
if type gmake > /dev/null 2>&1; then
MAKE=gmake
else
MAKE=make
fi
fi
fi
if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=cc
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CC=mingw32-gcc
else
CC=gcc
fi
fi
if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=c++
CXX11="clang++ -std=c++11 -stdlib=libc++"
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
2016-05-16 05:12:49 +00:00
CXX=mingw32-g++f
CXX11=mingw32-g++
else
CXX=g++
CXX11=g++
fi
fi
if [ "${CC}" ] && [ "${CXX}" ]; then
2015-10-31 18:31:18 +00:00
COMPILER="CC="\""${CC}"\"" CXX="\""${CXX}"\"""
else
COMPILER=""
fi
RESET_FORMAT_COMPILER_TARGET=$FORMAT_COMPILER_TARGET
RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT
check_opengl() {
if [ "${BUILD_LIBRETRO_GL}" ]; then
if [ "${ENABLE_GLES}" ]; then
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-gles"
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
else
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-opengl"
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
fi
fi
}
reset_compiler_targets() {
export FORMAT_COMPILER_TARGET=$RESET_FORMAT_COMPILER_TARGET
export FORMAT_COMPILER_TARGET_ALT=$RESET_FORMAT_COMPILER_TARGET_ALT
}
else
2016-03-02 04:58:42 +00:00
SCRIPT=$(read_link "$0")
echo "SCRIPT: $SCRIPT"
BASE_DIR=$(dirname "$SCRIPT")
if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="$BASE_DIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/$PLATFORM"
fi
fi
2016-01-18 17:59:40 +00:00
# ----- set jobs -----
2015-08-29 03:24:40 +00:00
if [ -z "$JOBS" ]; then
2016-02-08 17:15:25 +00:00
JOBS=6
2015-08-29 03:24:40 +00:00
fi
2015-09-10 23:14:34 +00:00
2016-01-18 17:59:40 +00:00
# ----- set forceful rebuild on/off -----
2015-09-10 05:39:29 +00:00
if [ -z "$FORCE" ]; then
2015-09-13 16:52:57 +00:00
FORCE=NO
2015-09-10 05:39:29 +00:00
fi
2016-01-14 23:16:40 +00:00
if [ -z "$FORCE_RETROARCH_BUILD" ]; then
FORCE_RETROARCH_BUILD=NO
fi
2015-09-10 23:14:34 +00:00
2016-01-22 17:05:34 +00:00
# ----- set release on/off -----
if [ -z "$RELEASE" ]; then
RELEASE=NO
fi
2016-01-18 17:59:40 +00:00
# ----- set cleanup rules -----
2015-11-01 18:21:25 +00:00
CLEANUP=NO
DAY=`date '+%d'`
HOUR=`date '+%H'`
if [ $DAY == 01 -a $HOUR == 06 ]; then
FORCE=YES
2015-11-01 18:21:25 +00:00
CLEANUP=NO
fi
2016-01-18 17:59:40 +00:00
# ----- use to keep track of built cores -----
CORES_BUILT=NO
2015-09-10 23:14:34 +00:00
2016-01-14 23:16:40 +00:00
FORCE_ORIG=$FORCE
JOBS_ORIG=$JOBS
2015-08-29 03:24:40 +00:00
cd "${BASE_DIR}"
2015-02-01 19:48:09 +00:00
buildbot_log() {
2016-01-14 23:32:14 +00:00
echo buildbot message: $MESSAGE
2015-10-18 19:30:45 +00:00
MESSAGE=`echo -e $1`
2015-03-06 00:50:45 +00:00
2015-10-13 23:52:34 +00:00
HASH=`echo -n "$MESSAGE" | openssl sha1 -hmac $SIG | cut -f 2 -d " "`
2015-08-16 06:10:25 +00:00
curl --max-time 30 --data "message=$MESSAGE&sign=$HASH" $LOGURL
2015-02-01 19:48:09 +00:00
}
build_libretro_generic_makefile() {
NAME=$1
DIR=$2
SUBDIR=$3
MAKEFILE=$4
PLATFORM=$5
ARGS=$6
2015-08-03 03:36:17 +00:00
JOBS=$JOBS
cd $DIR
cd $SUBDIR
2016-01-14 23:16:40 +00:00
JOBS_ORIG=$JOBS
2015-11-03 15:08:00 +00:00
if [ "${NAME}" == "mame2003" ]; then
JOBS=1
fi
2015-10-06 05:29:39 +00:00
if [ "${NAME}" == "mame2010" ]; then
JOBS=1
fi
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-03-09 12:23:17 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-05-30 21:54:13 +00:00
if [ -z "${ARGS}" ]; then
2016-08-28 03:49:49 +00:00
echo "CLEANUP CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-05-30 21:54:13 +00:00
else
2016-08-28 03:49:49 +00:00
echo "CLEANUP CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-05-30 21:54:13 +00:00
fi
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
fi
fi
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-10-18 19:30:45 +00:00
if [ "${NAME}" == "mame2010" ]; then
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: PLATFORM="" platform="" ${HELPER} ${MAKE} -f ${MAKEFILE} "VRENDER=soft" "NATIVE=1" buildtools -j${JOBS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
PLATFORM="" platform="" ${HELPER} ${MAKE} -f ${MAKEFILE} "VRENDER=soft" "NATIVE=1" buildtools -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-01-14 23:16:40 +00:00
JOBS=$JOBS_ORIG
2015-10-18 19:30:45 +00:00
fi
2015-10-16 05:24:41 +00:00
if [ -z "${ARGS}" ]; then
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
else
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
fi
2015-10-16 05:24:41 +00:00
2015-10-16 05:20:40 +00:00
if [ "${MAKEPORTABLE}" == "YES" ]; then
2016-08-29 00:38:39 +00:00
echo "BUILD CMD $WORK/retrolink.sh ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-07-10 15:57:51 +00:00
$WORK/retrolink.sh ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-10-18 19:30:45 +00:00
fi
2015-10-16 05:20:40 +00:00
2016-07-10 16:28:03 +00:00
echo "COPY CMD: cp -v ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-02-09 02:22:13 +00:00
cp -v ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-11-25 04:40:17 +00:00
cp -v ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
2016-07-10 15:57:51 +00:00
2015-10-18 19:30:45 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="$1: [status: done] [$jobid]"
2015-08-04 21:08:15 +00:00
if [ "${PLATFORM}" == "windows" -o "${PLATFORM}" == "unix" ]; then
2015-10-06 05:32:57 +00:00
strip -s ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
2015-07-21 05:31:15 +00:00
fi
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="$1: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
fi
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE
buildbot_log "$MESSAGE"
2016-01-14 23:16:40 +00:00
JOBS=$JOBS_ORIG
}
2015-06-17 23:49:20 +00:00
build_libretro_leiradel_makefile() {
NAME=$1
DIR=$2
SUBDIR=$3
MAKEFILE=$4
PLATFORM=$5
ARGS=$6
2015-09-13 16:52:57 +00:00
ARG1=`echo ${ARGS} | cut -f 1 -d " "`
mkdir -p $RARCH_DIST_DIR/${DIST}/${ARG1}
2015-08-13 22:11:51 +00:00
2015-06-17 23:49:20 +00:00
cd $DIR
cd $SUBDIR
2016-01-14 23:16:40 +00:00
JOBS_ORIG=$JOBS
2015-06-17 23:49:20 +00:00
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-06-17 23:49:20 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-08-28 03:49:49 +00:00
echo "CLEANUP CMD: ${HELPER} ${MAKE} -f ${MAKEFILE}.${PLATFORM}_${ARGS} platform=${PLATFORM}_${ARGS} -j${JOBS} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE}.${PLATFORM}_${ARGS} platform=${PLATFORM}_${ARGS} -j${JOBS} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-06-17 23:49:20 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-06-17 23:49:20 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-06-17 23:49:20 +00:00
fi
fi
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f ${MAKEFILE}.${PLATFORM}_${ARGS} platform=${PLATFORM}_${ARGS} -j${JOBS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE}.${PLATFORM}_${ARGS} platform=${PLATFORM}_${ARGS} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-06-17 23:49:20 +00:00
2016-08-29 00:38:39 +00:00
echo "COPY CMD: cp -v ${NAME}_libretro.${PLATFORM}_${ARG1}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${ARG1}/${NAME}_libretro${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-07-10 15:57:51 +00:00
cp -v ${NAME}_libretro.${PLATFORM}_${ARG1}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${ARG1}/${NAME}_libretro${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-10-18 19:30:45 +00:00
cp -v ${NAME}_libretro.${PLATFORM}_${ARG1}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${ARG1}/${NAME}_libretro${LIBSUFFIX}.${FORMAT_EXT}
2015-07-21 05:31:15 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="$1: [status: done] [$jobid]"
2015-07-21 05:31:15 +00:00
else
2016-08-27 17:59:57 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-08-27 17:32:46 +00:00
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="$1: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
fi
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE
2016-03-24 02:46:15 +00:00
buildbot_log "$MESSAGE"
2016-01-14 23:16:40 +00:00
JOBS=$JOBS_ORIG
2015-11-01 17:28:14 +00:00
2016-07-10 16:14:49 +00:00
}
build_libretro_generic_gl_makefile() {
NAME=$1
DIR=$2
SUBDIR=$3
MAKEFILE=$4
PLATFORM=$5
ARGS=$6
check_opengl
cd $DIR
cd $SUBDIR
echo -------------------------------------------------- 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-11-01 17:28:14 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-08-28 03:49:49 +00:00
echo "CLEANUP CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2015-11-01 17:28:14 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-11-01 17:28:14 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-11-01 17:28:14 +00:00
fi
fi
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
if [ -z "${ARGS}" ]; then
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-07-10 16:14:49 +00:00
else
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-07-10 16:14:49 +00:00
fi
2016-08-29 00:38:39 +00:00
echo "COPY CMD: cp -v ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
2016-07-10 16:14:49 +00:00
cp -v ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
cp -v ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
if [ $? -eq 0 ]; then
MESSAGE="$1: [status: done] [$jobid]"
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2016-07-10 16:14:49 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="$1: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
fi
echo buildbot job: $MESSAGE
buildbot_log "$MESSAGE"
reset_compiler_targets
2014-12-23 23:11:56 +00:00
}
build_libretro_generic_jni() {
NAME=$1
DIR=$2
SUBDIR=$3
MAKEFILE=$4
PLATFORM=$5
ARGS=$6
cd ${DIR}/${SUBDIR}
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
for a in "${ABIS[@]}"; do
2015-03-09 12:23:17 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-07-10 15:57:51 +00:00
echo "CLEANUP CMD: ${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2015-10-06 05:32:57 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup success!
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup failed!
fi
fi
2016-07-10 16:14:49 +00:00
echo -------------------------------------------------- 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2015-03-09 12:23:17 +00:00
if [ -z "${ARGS}" ]; then
2016-07-10 15:57:51 +00:00
echo "BUILD CMD: ${NDK} -j${JOBS} APP_ABI=${a}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} APP_ABI=${a} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
else
2016-07-10 15:57:51 +00:00
echo "BUILD CMD: ${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} " 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
fi
2016-07-23 05:21:22 +00:00
2016-07-23 05:22:52 +00:00
if [ "${NAME}" == "mupen64plus" ]; then
2016-07-23 05:41:09 +00:00
echo "COPY CMD: cp -v ../libs/${a}/libparallel_retro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/parallel_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2016-07-23 06:04:05 +00:00
cp -v ../libs/${a}/libparallel_retro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/parallel_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2016-07-23 05:41:09 +00:00
cp -v ../libs/${a}/libparallel_retro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/parallel_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
2016-07-22 17:39:13 +00:00
fi
2016-07-23 05:21:22 +00:00
echo "COPY CMD: cp -v ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2016-07-10 15:57:51 +00:00
cp -v ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2016-08-29 00:38:39 +00:00
cp -v ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="$1-$a: [status: done] [$jobid]"
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE
buildbot_log "$MESSAGE"
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="$1-$a: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE
buildbot_log "$MESSAGE"
fi
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-11-01 17:28:14 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-07-10 15:57:51 +00:00
echo "CLEANUP CMD: ${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PLATFORM}_${a}.log
2015-11-01 17:28:14 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup success!
2015-11-01 17:28:14 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $a $1 cleanup failed!
2015-11-01 17:28:14 +00:00
fi
fi
2015-11-01 18:04:03 +00:00
done
2016-07-10 16:14:49 +00:00
2014-12-18 03:39:09 +00:00
}
build_libretro_bsnes_jni() {
NAME=$1
DIR=$2
SUBDIR=$3
MAKEFILE=$4
PLATFORM=$5
PROFILE=$6
cd ${DIR}/${SUBDIR}
2016-07-10 16:50:48 +00:00
echo -------------------------------------------------- 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
for a in "${ABIS[@]}"; do
2015-03-09 12:23:17 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-07-10 16:50:48 +00:00
echo "CLEANUP CMD: ${NDK} -j${JOBS} APP_ABI=${a} clean" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} APP_ABI=${a} clean 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
2015-03-09 12:23:17 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
2015-03-09 12:23:17 +00:00
fi
fi
2016-07-10 16:50:48 +00:00
echo -------------------------------------------------- 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
2016-03-02 04:48:19 +00:00
if [ -z "${ARGS}" ]; then
2016-07-10 16:50:48 +00:00
echo "BUILD CMD: ${NDK} -j${JOBS} APP_ABI=${a} profile=${PROFILE}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} APP_ABI=${a} profile=${PROFILE} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
else
2016-07-10 16:50:48 +00:00
echo "BUILD CMD: ${NDK} -j${JOBS} APP_ABI=${a} profile=${PROFILE}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
${NDK} -j${JOBS} APP_ABI=${a} profile=${PROFILE} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
fi
2016-03-02 04:48:19 +00:00
2016-07-10 16:50:48 +00:00
echo "COPY CMD: cp -v ../libs/${a}/libretro_${NAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_${PROFILE}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
cp -v ../libs/${a}/libretro_${NAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_${PROFILE}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
2016-02-29 01:58:01 +00:00
cp -v ../libs/${a}/libretro_${NAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_${PROFILE}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-07-10 16:50:48 +00:00
MESSAGE="$1-$a-${PROFILE}: [status: done] [$jobid]"
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}_${a}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-07-10 16:50:48 +00:00
MESSAGE="$1-$a-${PROFILE}: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
fi
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE
2016-03-24 02:46:15 +00:00
buildbot_log "$MESSAGE"
done
}
build_libretro_bsnes() {
NAME=$1
DIR=$2
PROFILE=$3
MAKEFILE=$4
PLATFORM=$5
BSNESCOMPILER=$6
2016-03-02 04:58:42 +00:00
cd $DIR
2016-07-10 16:50:48 +00:00
echo -------------------------------------------------- 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
2015-03-09 12:23:17 +00:00
if [ -z "${NOCLEAN}" ]; then
2016-07-10 16:50:48 +00:00
rm -f obj/*.{o,"${FORMAT_EXT}"} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
rm -f out/*.{o,"${FORMAT_EXT}"} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
if [ "${PROFILE}" = "cpp98" -o "${PROFILE}" = "bnes" ]; then
2016-08-28 03:49:49 +00:00
${HELPER} ${MAKE} clean 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
2015-03-09 12:23:17 +00:00
fi
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup success!
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid $1 cleanup failed!
fi
fi
2016-01-18 17:59:40 +00:00
2016-07-10 16:50:48 +00:00
echo -------------------------------------------------- 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
if [ "${PROFILE}" = "cpp98" ]; then
2016-08-28 03:49:49 +00:00
${HELPER} ${MAKE} platform="${PLATFORM}" "${COMPILER}" "-j${JOBS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
elif [ "${PROFILE}" = "bnes" ]; then
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler=${BSNESCOMPILER}" platform=${FORMAT_COMPILER_TARGET} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
${HELPER} ${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler="${BSNESCOMPILER}" platform=${FORMAT_COMPILER_TARGET} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
else
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
fi
2015-10-18 19:30:45 +00:00
if [ "${PROFILE}" = "cpp98" ]; then
2016-07-10 16:50:48 +00:00
echo "COPY CMD: cp -fv out/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
2016-08-29 00:38:39 +00:00
cp -fv "out/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
cp -fv "out/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1
2015-10-18 19:30:45 +00:00
elif [ "${PROFILE}" = "bnes" ]; then
2016-08-29 00:38:39 +00:00
echo "COPY CMD cp -fv ${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
2016-07-10 16:50:48 +00:00
cp -fv "${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
2016-08-29 00:38:39 +00:00
cp -fv "${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}"
2015-10-18 19:30:45 +00:00
else
2016-07-10 16:50:48 +00:00
echo "COPY CMD cp -fv "out/${NAME}_${PROFILE}_libretro${FORMAT}.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}" 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
2016-08-29 00:38:39 +00:00
cp -fv "out/${NAME}_${PROFILE}_libretro${FORMAT}.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
cp -fv "out/${NAME}_${PROFILE}_libretro${FORMAT}.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${LIBSUFFIX}.${FORMAT_EXT}
2015-10-18 19:30:45 +00:00
fi
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-07-10 16:50:48 +00:00
MESSAGE="$1-${PROFILE}: [status: done] [$jobid]"
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_${NAME}_${PROFILE}_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-07-10 16:50:48 +00:00
MESSAGE="$1-${PROFILE}: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
fi
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE
2016-03-24 02:46:15 +00:00
buildbot_log "$MESSAGE"
2014-11-06 06:21:26 +00:00
}
2016-01-14 23:16:40 +00:00
# ----- buildbot -----
2016-01-14 23:16:40 +00:00
echo buildbot starting
echo --------------------------------------------------
echo Variables:
2016-03-02 04:58:42 +00:00
echo CC $CC
echo CXX $CXX
echo STRIP $STRIP
2016-01-14 23:16:40 +00:00
echo DISTDIR $RARCH_DIST_DIR
2016-03-02 04:58:42 +00:00
echo JOBS $JOBS
2016-01-14 23:16:40 +00:00
echo
echo
2015-10-13 23:18:23 +00:00
export jobid=$1
2015-01-17 05:56:23 +00:00
2016-01-14 23:16:40 +00:00
# ----- fetch a project -----
echo
echo
while read line; do
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
COMMAND=`echo $line | cut -f 6 -d " "`
MAKEFILE=`echo $line | cut -f 7 -d " "`
SUBDIR=`echo $line | cut -f 8 -d " "`
if [ "${ENABLED}" = "YES" ]; then
2016-01-14 23:16:40 +00:00
echo "buildbot job: $jobid processing $NAME"
2016-03-02 04:58:42 +00:00
echo --------------------------------------------------
2016-01-14 23:16:40 +00:00
echo Variables:
2016-03-02 04:58:42 +00:00
echo URL $URL
2016-01-14 23:16:40 +00:00
echo REPO TYPE $TYPE
2016-03-02 04:58:42 +00:00
echo ENABLED $ENABLED
echo COMMAND $COMMAND
echo MAKEFILE $MAKEFILE
echo DIR $DIR
echo SUBDIR $SUBDIR
echo
echo
ARGS=""
TEMP=`echo $line | cut -f 9 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 10 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 11 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 12 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 13 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 14 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
2015-09-13 16:52:57 +00:00
TEMP=""
TEMP=`echo $line | cut -f 15 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 16 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 17 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 18 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 19 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 20 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 21 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 22 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 23 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 24 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 25 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 26 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 27 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 28 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 29 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
2015-03-09 12:23:17 +00:00
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
if [ "${TYPE}" = "PROJECT" ]; then
2015-03-09 12:23:17 +00:00
if [ -d "${DIR}/.git" ]; then
2015-11-01 17:34:23 +00:00
if [ "${CLEANUP}" == "YES" ]; then
rm -rfv $DIR
echo "cloning repo..."
git clone --depth=1 "$URL" "$DIR"
BUILD="YES"
else
cd $DIR
2016-11-23 19:48:19 +00:00
echo "resetting repo state... "
git clean -xdf
git reset --hard
2016-01-14 23:16:40 +00:00
echo "pulling changes from repo... "
2015-11-01 17:34:23 +00:00
OUT=`git pull`
2015-11-01 17:34:23 +00:00
if [[ $OUT == *"Already up-to-date"* ]]; then
BUILD="NO"
else
BUILD="YES"
fi
2016-03-02 04:48:19 +00:00
fi
2016-01-14 23:16:40 +00:00
FORCE_ORIG=$FORCE
2015-07-21 05:31:15 +00:00
OLDBUILD=$BUILD
2015-03-18 03:46:52 +00:00
if [ "${PREVCORE}" = "bsnes" -a "${PREVBUILD}" = "YES" -a "${COMMAND}" = "BSNES" ]; then
FORCE="YES"
BUILD="YES"
fi
2016-02-29 01:42:33 +00:00
if [ "${PREVCORE}" = "bsnes" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "bsnes" ]; then
2016-02-29 01:12:30 +00:00
FORCE="YES"
BUILD="YES"
fi
2016-03-02 04:48:19 +00:00
if [ "${PREVCORE}" = "bsnes" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "bsnes-mercury" ]; then
2016-02-29 01:12:30 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "gw" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "gw" ]; then
2015-06-17 23:49:20 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "fuse" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "fuse" ]; then
2015-06-17 23:56:58 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "81" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "81" ]; then
2015-08-05 05:08:56 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "snes9x-next" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "snes9x-next" ]; then
2015-08-05 05:08:56 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "vba_next" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "vba_next" ]; then
2015-08-05 05:08:56 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "emux_nes" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "emux_nes" ]; then
2015-08-13 22:19:20 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "emux_sms" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "emux_sms" ]; then
2015-08-05 05:08:56 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "mgba" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "mgba" ]; then
2015-08-05 05:08:56 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-13 23:18:23 +00:00
if [ "${PREVCORE}" = "snes9x_next" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "snes9x_next" ]; then
2015-08-17 01:25:22 +00:00
FORCE="YES"
BUILD="YES"
fi
if [ "${PREVCORE}" = "bsnes_mercury" -a "${PREVBUILD}" = "YES" -a "${COMMAND}" = "BSNES" ]; then
FORCE="YES"
BUILD="YES"
fi
2015-08-03 04:34:38 +00:00
if [ "${PREVCORE}" = "mame2014" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "mess2014" ]; then
FORCE="YES"
BUILD="YES"
fi
2015-08-03 04:34:38 +00:00
if [ "${PREVCORE}" = "mess2014" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "ume2014" ]; then
FORCE="YES"
BUILD="YES"
fi
2015-03-18 03:46:52 +00:00
if [[ "${PREVCORE}" == *fb* ]] && [[ "${PREVBUILD}" = "YES" ]] && [[ "${NAME}" == *fb* ]]; then
2015-03-18 03:27:33 +00:00
FORCE="YES"
BUILD="YES"
fi
2015-10-06 05:29:39 +00:00
if [ "${PREVCORE}" = "mame2010" -a "${PREVBUILD}" = "YES" -a "${NAME}" = "mame2010" ]; then
FORCE="YES"
BUILD="YES"
fi
cd $WORK
else
echo "cloning repo..."
git clone --depth=1 "$URL" "$DIR"
BUILD="YES"
fi
elif [ "${TYPE}" = "psp_hw_render" ]; then
2015-03-09 12:23:17 +00:00
if [ -d "${DIR}/.git" ]; then
cd $DIR
2016-11-23 19:48:19 +00:00
echo "resetting repo state... "
git clean -xdf
git reset --hard
2016-01-14 23:16:40 +00:00
echo "pulling changes from repo... "
2015-09-15 04:11:34 +00:00
OUT=`git pull`
2015-09-15 03:53:02 +00:00
2015-03-09 12:23:17 +00:00
if [[ $OUT == *"Already up-to-date"* ]]; then
BUILD="NO"
else
BUILD="YES"
fi
cd $WORK
else
2016-01-14 23:16:40 +00:00
echo "pulling changes from repo... "
2015-03-07 21:07:38 +00:00
git clone "$URL" "$DIR"
cd $DIR
git checkout $TYPE
cd $WORK
BUILD="YES"
fi
2015-03-09 12:23:17 +00:00
elif [ "${TYPE}" == "SUBMODULE" ]; then
if [ -d "${DIR}/.git" ]; then
cd $DIR
2016-11-23 19:48:19 +00:00
echo "resetting repo state... "
git clean -xdf
git reset --hard
2016-01-14 23:41:14 +00:00
echo "pulling changes from repo... "
2015-09-15 04:11:34 +00:00
OUT=`git pull`
2015-09-15 03:53:02 +00:00
2015-03-09 12:23:17 +00:00
if [[ $OUT == *"Already up-to-date"* ]]; then
BUILD="NO"
else
BUILD="YES"
fi
2016-05-16 05:12:49 +00:00
OUT=`git submodule update --init --recursive`
cd $WORK
2016-03-02 04:48:19 +00:00
else
echo "cloning repo..."
git clone --depth=1 "$URL" "$DIR"
cd $DIR
git submodule update --init
BUILD="YES"
fi
2016-03-02 04:48:19 +00:00
cd $WORK
fi
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
2015-09-15 18:38:35 +00:00
touch $TMPDIR/built-cores
CORES_BUILT=YES
2016-01-14 23:16:40 +00:00
echo "buildbot job: building $NAME"
if [ "${COMMAND}" = "GENERIC" ]; then
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
2015-06-17 23:49:20 +00:00
elif [ "${COMMAND}" = "LEIRADEL" ]; then
2015-08-13 21:11:32 +00:00
build_libretro_leiradel_makefile $NAME $DIR $SUBDIR $MAKEFILE ${PLATFORM} "${ARGS}"
elif [ "${COMMAND}" = "GENERIC_GL" ]; then
build_libretro_generic_gl_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
elif [ "${COMMAND}" = "GENERIC_ALT" ]; then
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
elif [ "${COMMAND}" = "GENERIC_JNI" ]; then
build_libretro_generic_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
elif [ "${COMMAND}" = "BSNES_JNI" ]; then
build_libretro_bsnes_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
elif [ "${COMMAND}" = "GENERIC_THEOS" ]; then
build_libretro_generic_theos $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
elif [ "${COMMAND}" = "BSNES" ]; then
build_libretro_bsnes $NAME $DIR "${ARGS}" $MAKEFILE ${FORMAT_COMPILER_TARGET} ${CXX11}
2015-03-09 12:23:17 +00:00
fi
else
2016-01-14 23:16:40 +00:00
echo "buildbot job: building $NAME up-to-date"
fi
echo
fi
cd "${BASE_DIR}"
PREVCORE=$NAME
PREVBUILD=$BUILD
2015-03-18 03:46:52 +00:00
BUILD=$OLDBUILD
2016-01-14 23:16:40 +00:00
FORCE=$FORCE_ORIG
2015-03-09 12:23:17 +00:00
done < $1
2016-03-18 04:06:49 +00:00
buildbot_pull(){
2016-03-18 04:22:20 +00:00
while read line; do
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
2016-03-18 04:06:49 +00:00
if [ "${ENABLED}" = "YES" ]; then
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Processing $NAME"
2016-03-18 04:06:49 +00:00
echo
echo NAME: $NAME
echo DIR: $DIR
echo PARENT: $PARENTDIR
echo URL: $URL
echo REPO TYPE: $TYPE
echo ENABLED: $ENABLED
ARGS=""
TEMP=`echo $line | cut -f 9 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 10 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 11 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 12 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 13 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 14 -d " "`
2015-03-09 12:23:17 +00:00
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
2016-03-18 04:06:49 +00:00
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
cd $PARENTDIR
cd $DIR
2016-11-23 19:48:19 +00:00
echo "resetting repo state... "
git clean -xdf
2016-03-18 03:26:09 +00:00
git reset --hard
2016-11-23 19:48:19 +00:00
echo "pulling changes from repo... "
2015-09-15 04:11:34 +00:00
OUT=`git pull`
2016-03-18 03:26:09 +00:00
echo $OUT
if [ "${TYPE}" = "PROJECT" ]; then
RADIR=$DIR
if [[ $OUT == *"Already up-to-date"* ]]; then
BUILD="NO"
else
BUILD="YES"
fi
elif [ "${TYPE}" = "SUBMODULE" ]; then
RADIR=$DIR
2015-03-09 12:23:17 +00:00
if [[ $OUT == *"Already up-to-date"* ]]; then
BUILD="NO"
else
BUILD="YES"
2016-03-21 19:12:39 +00:00
git submodule update --init --recursive
2016-05-16 05:12:49 +00:00
#git submodule foreach git pull origin master
fi
fi
2015-10-21 22:18:38 +00:00
cd $WORK
else
echo "cloning repo..."
cd $PARENTDIR
2016-03-25 21:36:33 +00:00
if [ ! -z "$BRANCH" -a "${NAME}" == "retroarch" ]; then
2016-03-25 16:55:13 +00:00
git clone -b "$BRANCH" "$URL" "$DIR"
2016-03-25 17:24:19 +00:00
else
git clone "$URL" "$DIR" --depth=1
2016-03-22 22:36:43 +00:00
fi
2016-03-23 17:20:23 +00:00
cd $WORK
2016-03-18 03:26:09 +00:00
if [ "${TYPE}" = "PROJECT" ]; then
BUILD="YES"
RADIR=$DIR
2016-03-18 03:26:09 +00:00
elif [ "${TYPE}" == "SUBMODULE" ]; then
cd $PARENTDIR
cd $DIR
RADIR=$DIR
echo "updating submodules..."
2016-03-21 19:13:18 +00:00
git submodule update --init --recursive
2016-05-16 05:12:49 +00:00
#git submodule foreach git pull origin master
2016-03-18 03:26:09 +00:00
BUILD="YES"
fi
cd $WORK
fi
fi
echo
2016-03-23 17:20:23 +00:00
echo RADIR=$RADIR
2016-03-18 04:13:41 +00:00
done < $RECIPE.ra
2016-03-25 21:36:33 +00:00
cd $WORK
2016-03-18 04:06:49 +00:00
}
echo "buildbot job: $jobid Building Retroarch-$PLATFORM"
echo --------------------------------------------------
echo
cd $WORK
BUILD=""
if [ "${PLATFORM}" == "osx" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-10-21 22:18:38 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
2015-09-15 18:38:35 +00:00
touch $TMPDIR/built-frontend
2015-03-09 12:23:17 +00:00
cd $RADIR
2016-03-18 03:35:16 +00:00
git clean -xdf
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
echo
2015-03-09 12:23:17 +00:00
2015-10-21 22:18:38 +00:00
cd pkg/apple
2016-01-14 23:43:18 +00:00
2016-03-18 03:39:38 +00:00
xcodebuild -project RetroArch.xcodeproj -target RetroArch -configuration Release | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-07-03 14:40:27 +00:00
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-10-21 22:18:38 +00:00
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-21 22:18:38 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-10-21 22:18:38 +00:00
echo $MESSAGE
fi
2016-03-02 04:58:42 +00:00
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-03-09 12:23:17 +00:00
2016-03-18 03:39:38 +00:00
xcodebuild -project RetroArch.xcodeproj -target "RetroArch Cg" -configuration Release | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_CG_${PLATFORM}.log
2015-10-21 16:02:46 +00:00
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-03-09 12:23:17 +00:00
echo $MESSAGE
2015-02-24 19:00:38 +00:00
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_CG_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-03-09 12:23:17 +00:00
echo $MESSAGE
2015-02-24 19:00:38 +00:00
fi
2015-10-21 22:18:38 +00:00
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-10-21 22:18:38 +00:00
cd $WORK/$RADIR
echo "Packaging"
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" == "ios" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-10-21 22:18:38 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
2015-09-15 18:38:35 +00:00
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-09-13 16:37:15 +00:00
echo
2015-10-21 22:18:38 +00:00
cd pkg/apple
2015-10-21 22:22:04 +00:00
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -project RetroArch_iOS.xcodeproj -configuration Release &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-06-17 04:28:53 +00:00
2015-03-09 12:23:17 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-10-21 22:18:38 +00:00
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-21 22:18:38 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-10-21 22:18:38 +00:00
echo $MESSAGE
fi
2015-06-17 04:28:53 +00:00
2015-10-21 22:18:38 +00:00
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-10-21 22:18:38 +00:00
cd $WORK/$RADIR
2015-04-07 04:57:26 +00:00
2015-10-21 22:18:38 +00:00
echo "Packaging"
2015-03-25 02:15:09 +00:00
2015-10-21 22:18:38 +00:00
fi
fi
2015-03-25 02:15:09 +00:00
2015-04-16 16:40:42 +00:00
2015-10-28 23:42:23 +00:00
if [ "${PLATFORM}" == "ios9" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-10-28 23:42:23 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-10-28 23:42:23 +00:00
echo
cd pkg/apple
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -project RetroArch_iOS.xcodeproj -configuration Release -target "RetroArch iOS9" &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-10-30 06:23:19 +00:00
cd build/Release-iphoneos
security unlock-keychain -p buildbot /Users/buildbot/Library/Keychains/login.keychain
2015-10-30 06:50:30 +00:00
codesign -fs "buildbot" RetroArch.app
2015-10-30 06:23:19 +00:00
2015-10-28 23:42:23 +00:00
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-28 23:42:23 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-10-28 23:42:23 +00:00
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-10-28 23:42:23 +00:00
cd $WORK/$RADIR
echo "Packaging"
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
2015-10-28 23:42:23 +00:00
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
2016-03-22 22:36:43 +00:00
echo BRANCH=$BRANCH
2016-03-18 04:22:20 +00:00
buildbot_pull
2015-10-28 23:42:23 +00:00
2016-03-18 04:06:49 +00:00
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" ]; then
touch $TMPDIR/built-frontend
echo "buildbot job: $jobid compiling shaders"
echo
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:06:49 +00:00
git clean -xdf
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
2016-08-28 03:49:49 +00:00
${HELPER} ${MAKE} -f Makefile.griffin shaders-convert-glsl PYTHON3=$PYTHON
2015-02-26 01:32:07 +00:00
2016-03-18 04:06:49 +00:00
echo "buildbot job: $jobid processing assets"
echo
2015-02-26 01:32:07 +00:00
2016-03-18 04:06:49 +00:00
rm -rf pkg/android/phoenix/assets/assets
rm -rf pkg/android/phoenix/assets/cores
rm -rf pkg/android/phoenix/assets/info
rm -rf pkg/android/phoenix/assets/overlays
rm -rf pkg/android/phoenix/assets/shaders/shaders_glsl/
rm -rf pkg/android/phoenix/assets/database
rm -rf pkg/android/phoenix/assets/autoconfig
rm -rf pkg/android/phoenix/assets/cheats
rm -rf pkg/android/phoenix/assets/playlists
rm -rf pkg/android/phoenix/assets/dowloads
rm -rf pkg/android/phoenix/assets/remaps
rm -rf pkg/android/phoenix/assets/system
2015-10-21 22:18:38 +00:00
mkdir -p pkg/android/phoenix/assets
mkdir -p pkg/android/phoenix/assets/
mkdir -p pkg/android/phoenix/assets/assets
mkdir -p pkg/android/phoenix/assets/cores
mkdir -p pkg/android/phoenix/assets/info
mkdir -p pkg/android/phoenix/assets/overlays
2016-01-13 15:22:13 +00:00
mkdir -p pkg/android/phoenix/assets/shaders/shaders_glsl
mkdir -p pkg/android/phoenix/assets/database/cursors
mkdir -p pkg/android/phoenix/assets/database/rdb
2015-10-21 22:18:38 +00:00
mkdir -p pkg/android/phoenix/assets/autoconfig
mkdir -p pkg/android/phoenix/assets/cheats
mkdir -p pkg/android/phoenix/assets/playlists
mkdir -p pkg/android/phoenix/assets/dowloads
mkdir -p pkg/android/phoenix/assets/remaps
mkdir -p pkg/android/phoenix/assets/saves/
mkdir -p pkg/android/phoenix/assets/states/
mkdir -p pkg/android/phoenix/assets/system/
2015-11-28 02:04:43 +00:00
mkdir -p pkg/android/phoenix/assets/filters/video
mkdir -p pkg/android/phoenix/assets/filters/audio
2016-01-12 18:36:22 +00:00
2016-03-02 04:58:42 +00:00
cp -rf media/assets/glui pkg/android/phoenix/assets/assets/
cp -rf media/assets/xmb pkg/android/phoenix/assets/assets/
2015-10-28 02:37:32 +00:00
cp -rf media/assets/zarch pkg/android/phoenix/assets/assets/
2015-10-21 22:18:38 +00:00
cp -rf media/autoconfig/* pkg/android/phoenix/assets/autoconfig/
cp -rf media/overlays/* pkg/android/phoenix/assets/overlays/
2016-01-13 15:22:13 +00:00
cp -rf media/shaders_glsl/* pkg/android/phoenix/assets/shaders/shaders_glsl/
cp -rf media/libretrodb/cursors/* pkg/android/phoenix/assets/database/cursors/
cp -rf media/libretrodb/rdb/* pkg/android/phoenix/assets/database/rdb/
2015-11-28 02:04:43 +00:00
cp -rf audio/audio_filters/*.dsp pkg/android/phoenix/assets/filters/audio/
cp -rf gfx/video_filters/*.filt pkg/android/phoenix/assets/filters/video/
2016-01-13 15:22:13 +00:00
2015-10-21 22:18:38 +00:00
cp -rf media/shaders_glsl $TMPDIR/
2016-03-02 05:11:49 +00:00
touch pkg/android/phoenix/assets/cheats/.empty-folder
touch pkg/android/phoenix/assets/saves/.empty-folder
touch pkg/android/phoenix/assets/states/.empty-folder
touch pkg/android/phoenix/assets/system/.empty-folder
2015-10-21 22:18:38 +00:00
cp -rf $RARCH_DIR/info/* pkg/android/phoenix/assets/info/
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-09-13 16:37:15 +00:00
echo
2015-10-21 22:18:38 +00:00
cd pkg/android/phoenix
rm bin/*.apk
2016-02-23 17:13:07 +00:00
cat << EOF > local.properties
2016-02-20 18:59:34 +00:00
sdk.dir=/home/buildbot/tools/android/android-sdk-linux
key.store=/home/buildbot/.android/release.keystore
key.alias=buildbot
key.store.password=buildbot
key.alias.password=buildbot
2016-03-02 05:13:43 +00:00
2016-02-20 18:59:34 +00:00
EOF
2015-02-26 01:32:07 +00:00
2016-03-18 03:43:50 +00:00
$NDK clean | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
$NDK -j${JOBS} | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ "${RELEASE}" == "NO" ]; then
python ./version_increment.py
2016-03-18 03:35:16 +00:00
else
2016-03-18 04:22:20 +00:00
git reset --hard
fi
2016-03-18 03:43:50 +00:00
ant clean | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-10-31 03:43:23 +00:00
android update project --path . --target android-24 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
android update project --path libs/googleplay --target android-24 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
android update project --path libs/appcompat --target android-24 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-03-18 03:43:50 +00:00
ant release | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-03-22 22:44:32 +00:00
if [ -z "$BRANCH" ]; then
cp -rv bin/retroarch-release.apk $RARCH_DIR/retroarch-release.apk | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
cp -rv bin/retroarch-release.apk $RARCH_DIR/retroarch-release.apk
2016-03-22 23:13:33 +00:00
else
2016-10-15 00:27:47 +00:00
cp -rv bin/retroarch-release.apk $RARCH_DIR/retroarch-staging-release.apk | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
cp -rv bin/retroarch-release.apk $RARCH_DIR/retroarch-staging-release.apk
2016-03-22 22:44:32 +00:00
fi
2016-02-23 17:19:16 +00:00
2016-02-10 00:30:13 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2016-02-10 00:30:13 +00:00
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2016-02-10 00:30:13 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2016-02-10 00:30:13 +00:00
echo $MESSAGE
fi
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2016-02-10 00:30:13 +00:00
buildbot_log "$MESSAGE"
2016-02-09 23:00:38 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch debug: [status: done] [$jobid]"
2016-02-23 17:19:16 +00:00
echo $MESSAGE $RARCH_DIR
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
fi
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
buildbot_log "$MESSAGE"
2015-02-26 01:32:07 +00:00
fi
fi
2015-10-23 07:22:01 +00:00
if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] || [ "${PLATFORM}" = "windows" ] && [ "${RA}" = "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-03-07 21:08:46 +00:00
2015-10-21 22:18:38 +00:00
echo
echo
2016-03-18 04:10:46 +00:00
2015-10-21 22:18:38 +00:00
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" ]; then
2015-09-15 18:38:35 +00:00
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-03-07 21:51:20 +00:00
echo
2015-03-07 21:08:46 +00:00
2015-10-21 22:18:38 +00:00
echo "compiling audio filters"
cd audio/audio_filters
2016-08-28 03:49:49 +00:00
echo "audio filter BUILD CMD: ${HELPER} ${MAKE}"
${HELPER} ${MAKE}
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid audio filter build success!
2015-10-21 22:18:38 +00:00
else
2016-03-18 04:22:20 +00:00
echo buildbot job: $jobid audio filter: [status: fail]!
2015-03-07 21:08:46 +00:00
fi
2015-10-21 22:18:38 +00:00
cd ..
cd ..
2015-01-27 23:34:52 +00:00
2015-10-21 22:18:38 +00:00
echo "compiling video filters"
cd gfx/video_filters
2016-08-28 03:49:49 +00:00
echo "audio filter BUILD CMD: ${HELPER} ${MAKE}"
${HELPER} ${MAKE}
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid video filter build success!
2015-10-21 22:18:38 +00:00
else
2016-03-18 04:22:20 +00:00
echo buildbot job: $jobid video filter: [status: fail]!
2015-10-21 22:18:38 +00:00
fi
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
cd ..
cd ..
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
echo "configuring..."
echo "configure command: $CONFIGURE $ARGS"
${CONFIGURE} ${ARGS}
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
echo "cleaning up..."
2016-08-28 03:49:49 +00:00
echo "CLEANUP CMD: ${HELPER} ${MAKE} clean"
${HELPER} ${MAKE} clean
2016-06-05 00:56:19 +00:00
rm -rf windows
mkdir -p windows
2015-03-11 02:38:12 +00:00
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch cleanup success!
2015-10-21 22:18:38 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch cleanup failed!
2015-03-11 02:38:12 +00:00
fi
2015-09-15 03:53:02 +00:00
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ]; then
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch configure success!
2015-03-11 02:38:12 +00:00
else
2016-01-14 23:32:14 +00:00
echo buildbot job: $jobid retroarch configure failed!
2015-03-11 02:38:12 +00:00
fi
2015-10-21 22:18:38 +00:00
echo "building..."
2016-08-28 03:49:49 +00:00
echo "BUILD CMD: ${HELPER} ${MAKE} -j${JOBS}"
${HELPER} ${MAKE} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-10-21 22:18:38 +00:00
strip -s retroarch.exe
2016-06-04 18:09:58 +00:00
cp -v retroarch.exe windows/retroarch.exe | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-06-04 16:27:25 +00:00
cp -v retroarch.exe windows/retroarch.exe
2016-06-05 00:45:36 +00:00
2016-06-05 00:47:00 +00:00
status=$?
2016-06-05 00:45:36 +00:00
echo $status
2015-06-17 04:28:53 +00:00
2016-06-05 00:45:36 +00:00
if [ $status -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-09-13 16:52:57 +00:00
echo $MESSAGE
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-10-21 22:18:38 +00:00
buildbot_log "$MESSAGE"
2016-06-04 16:27:25 +00:00
2016-08-28 03:49:49 +00:00
${HELPER} ${MAKE} clean
${HELPER} ${MAKE} -j${JOBS} DEBUG=1 GL_DEBUG=1 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_DEBUG_${PLATFORM}.log
2016-06-04 18:09:58 +00:00
cp -v retroarch.exe windows/retroarch_debug.exe | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
cp -v retroarch.exe windows/retroarch_debug.exe
2016-06-04 16:27:25 +00:00
if [ $? -eq 0 ]; then
MESSAGE="retroarch debug: [status: done] [$jobid]"
echo $MESSAGE
echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
buildbot_log "$MESSAGE"
fi
2015-10-21 22:18:38 +00:00
echo "Packaging"
cp retroarch.cfg retroarch.default.cfg
mkdir -p windows/filters
mkdir -p windows/filters/video
mkdir -p windows/filters/audio
2016-04-30 19:41:08 +00:00
mkdir -p windows/saves
mkdir -p windows/states
mkdir -p windows/system
2016-05-01 17:35:17 +00:00
mkdir -p windows/screenshots
2016-04-30 12:15:44 +00:00
2015-10-21 22:18:38 +00:00
cat << EOF > windows/retroarch.cfg
dpi_override_value = "160"
2016-05-22 01:53:15 +00:00
input_joypad_driver = "xinput"
2015-10-21 22:18:38 +00:00
input_osk_overlay_enable = "false"
load_dummy_on_core_shutdown = "false"
menu_collapse_subgroups_enable = "true"
video_driver = "gl"
2016-04-30 19:41:08 +00:00
system_directory = ":\system"
savefile_directory = ":\saves"
savestate_directory = ":\states"
2015-10-21 22:18:38 +00:00
EOF
cp -v retroarch.default.cfg windows/
2016-06-04 16:27:25 +00:00
cp -v tools/*.exe windows/
2015-10-21 22:18:38 +00:00
cp -rf audio/audio_filters/*.dll windows/filters/audio
cp -rf audio/audio_filters/*.dsp windows/filters/audio
cp -rf gfx/video_filters/*.dll windows/filters/video
cp -rf gfx/video_filters/*.filt windows/filters/video
2015-10-28 23:42:23 +00:00
2015-09-13 16:52:57 +00:00
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-09-13 16:52:57 +00:00
echo $MESSAGE
2016-01-14 23:32:14 +00:00
echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-10-21 22:18:38 +00:00
buildbot_log "$MESSAGE"
2015-03-11 02:38:12 +00:00
fi
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" = "psp1" ] && [ "${RA}" = "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-09-07 19:39:28 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
2015-10-21 22:18:38 +00:00
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-09-07 19:39:28 +00:00
echo
2015-09-13 16:54:11 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2015-09-07 19:39:28 +00:00
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh psp1 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-09-13 16:54:11 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-09-13 16:54:11 +00:00
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-09-13 16:54:11 +00:00
echo $MESSAGE
2015-09-07 19:39:28 +00:00
fi
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-09-07 19:39:28 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2015-10-21 22:18:38 +00:00
cd $WORK/$RADIR
2015-09-07 19:39:28 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-21 22:18:38 +00:00
mkdir -p pkg/psp1/
2016-09-04 05:00:22 +00:00
mkdir -p pkg/psp1/info
2016-09-04 04:59:16 +00:00
cp -v $RARCH_DIST_DIR/../info/*.info pkg/psp1/info/
2015-10-21 22:18:38 +00:00
2015-09-07 19:39:28 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" == "wii" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-10-21 22:18:38 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-10-21 22:18:38 +00:00
echo
2016-03-19 17:32:42 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2015-10-21 22:18:38 +00:00
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh wii &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-03-19 17:32:42 +00:00
if [ $? -eq 0 ];
then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2016-03-19 17:32:42 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
2015-10-21 22:18:38 +00:00
fi
2016-03-19 17:32:42 +00:00
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-10-21 22:18:38 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2016-03-19 17:32:42 +00:00
cd $WORK/$RADIR
2015-10-21 22:18:38 +00:00
cp retroarch.cfg retroarch.default.cfg
2016-03-19 17:32:42 +00:00
mkdir -p pkg/wii/
2015-10-21 22:18:38 +00:00
mkdir -p pkg/wii/cheats
mkdir -p pkg/wii/remaps
2016-03-19 17:32:42 +00:00
mkdir -p pkg/wii/overlays
2016-07-17 01:40:01 +00:00
cp -v $RARCH_DIST_DIR/../info/*.info pkg/
2015-10-21 22:18:38 +00:00
cp -rf media/overlays/wii/* pkg/wii/overlays
fi
fi
2016-11-07 20:53:03 +00:00
if [ "${PLATFORM}" == "wiiu" ] && [ "${RA}" == "YES" ]; then
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
touch $TMPDIR/built-frontend
cd $RADIR
git clean -xdf
echo "buildbot job: $jobid Building"
echo
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2016-11-07 21:21:48 +00:00
cp -v $RARCH_DIST_DIR/../info/*.info .
2016-11-07 21:25:51 +00:00
cp -v ../media/assets/pkg/wiiu/*.png .
2016-11-07 20:53:03 +00:00
2016-11-24 02:54:40 +00:00
time sh ./wiiu-cores.sh &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-11-07 20:53:03 +00:00
if [ $? -eq 0 ];
then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
else
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
echo "Packaging"
cd $WORK/$RADIR
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" == "ngc" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-09-14 23:25:58 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
2015-09-15 18:38:35 +00:00
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-09-14 23:25:58 +00:00
echo
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh ngc &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-10-21 22:18:38 +00:00
if [ $? -eq 0 ];
then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-09-14 23:25:58 +00:00
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-18 19:30:45 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-09-14 23:25:58 +00:00
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-09-14 23:25:58 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2016-03-19 17:32:42 +00:00
cd $WORK/$RADIR
2015-09-14 23:25:58 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-21 22:18:38 +00:00
mkdir -p pkg/ngc/
mkdir -p pkg/ngc/cheats
mkdir -p pkg/ngc/remaps
mkdir -p pkg/ngc/overlays
2016-07-17 01:40:01 +00:00
cp -v $RARCH_DIST_DIR/../info/*.info pkg/
cp -rf media/overlays/ngc/* pkg/ngc/overlays
2015-09-14 23:25:58 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" == "ctr" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
buildbot_pull
2016-03-23 17:28:58 +00:00
echo WORKINGDIR=$PWD $WORK
2016-03-23 17:27:48 +00:00
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
2015-10-19 19:47:52 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-10-19 19:47:52 +00:00
echo
2015-10-21 22:18:38 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2015-10-19 19:47:52 +00:00
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh ctr &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-10-19 19:47:52 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-10-19 19:47:52 +00:00
echo $MESSAGE
2015-10-23 05:29:10 +00:00
touch $TMPDIR/built-frontend
2015-10-19 19:47:52 +00:00
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-19 19:47:52 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-10-19 19:47:52 +00:00
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-10-19 19:47:52 +00:00
cd $WORK/$RADIR
2016-03-23 17:28:58 +00:00
echo $PWD
2015-10-19 19:47:52 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2015-10-21 22:18:38 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-19 19:47:52 +00:00
2016-03-23 17:27:48 +00:00
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch
2016-10-07 23:14:17 +00:00
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/cores
2016-10-08 05:16:45 +00:00
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/cores/info
2016-03-23 17:27:48 +00:00
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/remaps
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/cheats
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/filters
2016-03-23 17:35:32 +00:00
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/filters/audio
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/filters/video
2016-10-08 05:16:45 +00:00
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/database
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/database/rdb
mkdir -p $WORK/$RADIR/pkg/3ds/retroarch/database/cursors
2016-10-07 23:14:17 +00:00
2016-03-23 17:42:31 +00:00
cp -v $WORK/$RADIR/gfx/video_filters/*.filt $WORK/$RADIR/pkg/3ds/retroarch/filters/video/
cp -v $WORK/$RADIR/audio/audio_filters/*.dsp $WORK/$RADIR/pkg/3ds/retroarch/filters/audio/
2016-10-07 23:14:17 +00:00
cp -v $RARCH_DIST_DIR/../info/*.info $WORK/$RADIR/pkg/3ds/retroarch/cores/info/
2016-10-08 05:16:45 +00:00
cp -v $WORK/$RADIR/media/libretrodb/rdb/*.rdb $WORK/$RADIR/pkg/3ds/retroarch/database/rdb/
cp -v $WORK/$RADIR/media/libretrodb/cursors/*.dbc $WORK/$RADIR/pkg/3ds/retroarch/database/cursors/
convert_xmb_assets $WORK/$RADIR/media/assets/xmb $WORK/$RADIR/pkg/3ds/retroarch/media/xmb 64x32! 400x240! 90
2015-10-19 19:47:52 +00:00
fi
fi
2015-10-21 22:18:38 +00:00
if [ "${PLATFORM}" == "vita" ] && [ "${RA}" == "YES" ]; then
2016-03-18 04:22:20 +00:00
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
2015-10-21 21:57:27 +00:00
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
touch $TMPDIR/built-frontend
2016-03-18 04:22:20 +00:00
cd $RADIR
2016-03-18 04:16:10 +00:00
git clean -xdf
2016-01-14 23:32:14 +00:00
echo "buildbot job: $jobid Building"
2015-10-21 21:57:27 +00:00
echo
2015-10-21 22:18:38 +00:00
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2016-08-29 00:38:39 +00:00
cp -v $RARCH_DIST_DIR/arm/*.a .
2015-10-21 21:57:27 +00:00
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh vita &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2015-10-21 21:57:27 +00:00
if [ $? -eq 0 ]; then
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: done] [$jobid]"
2015-10-21 21:57:27 +00:00
echo $MESSAGE
else
2016-08-27 21:23:09 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-08-27 17:32:46 +00:00
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2015-10-21 21:57:27 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
2016-03-18 04:22:20 +00:00
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
2015-10-21 21:57:27 +00:00
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
2016-03-24 02:46:15 +00:00
echo buildbot job: $MESSAGE
2015-10-21 21:57:27 +00:00
echo "Packaging"
2016-01-14 23:32:14 +00:00
2016-03-19 17:32:42 +00:00
cd $WORK/$RADIR
2015-10-21 22:18:38 +00:00
cp retroarch.cfg retroarch.default.cfg
2015-10-21 21:57:27 +00:00
2015-10-21 22:18:38 +00:00
mkdir -p pkg/vita
mkdir -p pkg/vita/remaps
mkdir -p pkg/vita/cheats
cp -rf media/overlays/* pkg/vita/overlays/
2015-10-21 21:57:27 +00:00
fi
fi
if [ "${PLATFORM}" == "ps3" ] && [ "${RA}" == "YES" ]; then
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
touch $TMPDIR/built-frontend
cd $RADIR
git clean -xdf
echo "buildbot job: $jobid Building"
echo
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh dex-ps3 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_dex.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_dex.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2016-08-11 19:06:29 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
fi
2016-08-11 19:30:03 +00:00
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh cex-ps3 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_cex.log
2016-08-11 19:06:29 +00:00
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_cex.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
2016-08-11 19:06:29 +00:00
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
fi
2016-08-11 19:30:03 +00:00
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
2016-11-24 02:54:40 +00:00
time sh ./dist-cores.sh ode-ps3 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_ode.log
2016-08-11 19:06:29 +00:00
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
else
2016-08-27 17:32:46 +00:00
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_ode.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
fi
fi
2016-08-29 00:20:32 +00:00
if [ "${PLATFORM}" = "emscripten" ] && [ "${RA}" = "YES" ]; then
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" -o "${CORES_BUILT}" == "YES" ]; then
touch $TMPDIR/built-frontend
cd $RADIR
git clean -xdf
echo "buildbot job: $jobid Building"
echo
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.bc .
echo "BUILD CMD $HELPER ./dist-cores.sh emscripten" &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
$HELPER ./dist-cores.sh emscripten &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
2016-08-29 00:20:32 +00:00
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
else
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
echo "Packaging"
cd $WORK/$RADIR
fi
fi
2016-11-24 02:20:46 +00:00
if [ "${PLATFORM}" = "unix" ]; then
echo WORKINGDIR=$PWD
echo RELEASE=$RELEASE
echo FORCE=$FORCE_RETROARCH_BUILD
echo RADIR=$RADIR
buildbot_pull
echo
echo
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" ]; then
touch $TMPDIR/built-frontend
cd $RADIR
git clean -xdf
echo "buildbot job: $jobid Building"
echo
echo "compiling audio filters"
cd audio/audio_filters
echo "audio filter BUILD CMD: ${HELPER} ${MAKE}"
${HELPER} ${MAKE}
if [ $? -eq 0 ]; then
echo buildbot job: $jobid audio filter build success!
else
echo buildbot job: $jobid audio filter: [status: fail]!
fi
cd ..
cd ..
echo "compiling video filters"
cd gfx/video_filters
echo "audio filter BUILD CMD: ${HELPER} ${MAKE}"
${HELPER} ${MAKE}
if [ $? -eq 0 ]; then
echo buildbot job: $jobid video filter build success!
else
echo buildbot job: $jobid video filter: [status: fail]!
fi
cd ..
cd ..
echo "configuring..."
echo "configure command: $CONFIGURE $ARGS"
${CONFIGURE} ${ARGS}
echo "cleaning up..."
echo "CLEANUP CMD: ${HELPER} ${MAKE} clean"
${HELPER} ${MAKE} clean
if [ $? -eq 0 ]; then
echo buildbot job: $jobid retroarch cleanup success!
else
echo buildbot job: $jobid retroarch cleanup failed!
fi
if [ $? -eq 0 ]; then
echo buildbot job: $jobid retroarch configure success!
else
echo buildbot job: $jobid retroarch configure failed!
fi
echo "building..."
echo "BUILD CMD: ${HELPER} ${MAKE} -j${JOBS}"
${HELPER} ${MAKE} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
status=$?
echo $status
if [ $status -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
buildbot_log "$MESSAGE"
echo "Packaging"
else
ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR`
HASTE=`echo $HASTE | cut -d"\"" -f4`
MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE"
echo $MESSAGE
echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
buildbot_log "$MESSAGE"
fi
fi
fi
2015-09-07 19:39:28 +00:00
PATH=$ORIGPATH