libretro-buildbot-recipe.sh: Allow building specific bsnes and mame cores.

This could be useful for travis to capture regressions if the only
one of the cores is affected. Additionally it is required for fixing
travis with mame2014. If the core is not bsnes-libretro, bsnes-mercury
or mame2014 the $CORE variable in the travis scripts will be ignored.
This commit is contained in:
orbea 2017-12-23 10:36:21 -08:00
parent a9325132e7
commit ebd0f5d1e1
7 changed files with 21 additions and 9 deletions

View File

@ -315,9 +315,9 @@ build_libretro_generic_makefile() {
cd "${SUBDIR}"
if [ "${COMMAND}" = "BSNES" ]; then
CORE="${NAME}_accuracy ${NAME}_balanced ${NAME}_performance"
CORE="${CORE:-${NAME}_accuracy ${NAME}_balanced ${NAME}_performance}"
elif [ "${NAME}" = "mame2014" ]; then
CORE="${NAME} mess2014 ume2014"
CORE="${CORE:-${NAME} mess2014 ume2014}"
else
CORE="${NAME}"
fi
@ -472,7 +472,7 @@ build_libretro_generic_jni() {
fi
if [ "${COMMAND}" = "BSNES_JNI" ]; then
CORE="${NAME}_accuracy ${NAME}_balanced ${NAME}_performance"
CORE="${CORE:-${NAME}_accuracy ${NAME}_balanced ${NAME}_performance}"
else
CORE="${NAME}"
fi

View File

@ -20,5 +20,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -10,5 +10,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -21,5 +21,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -10,5 +10,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -21,5 +21,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -20,5 +20,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"