mirror of
https://github.com/libretro/libretro-super
synced 2024-12-28 15:19:36 +00:00
ebd0f5d1e1
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.
28 lines
661 B
Bash
Executable File
28 lines
661 B
Bash
Executable File
#!/bin/bash
|
|
|
|
RECIPE=recipes/nintendo/wii
|
|
|
|
sudo mkdir -p /home/buildbot/tools
|
|
|
|
sudo chmod -R 777 /home/buildbot
|
|
|
|
cd /home/buildbot/tools
|
|
|
|
# wiiu tools work for wii also
|
|
wget -O wiiu.tar.xz 'https://github.com/libretro/libretro-toolchains/blob/master/wiiu.tar.xz?raw=true'
|
|
|
|
tar Jkxf wiiu.tar.xz
|
|
|
|
cd ~/libretro-super
|
|
|
|
if [ "${TRAVIS_BUILD_DIR}" ]; then
|
|
CORE_DIRNAME=`grep ${CORE} ${RECIPE} | head -1 | awk '{print $2}'`
|
|
rm -fr ${CORE_DIRNAME}
|
|
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
|
|
fi
|
|
|
|
[ -z "${NAME:-}" ] && NAME="${CORE}"
|
|
|
|
# only build the one core specified in $CORE
|
|
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"
|