2018-05-26 13:48:11 +02:00
language : cpp
2018-02-03 17:03:36 +01:00
2018-05-26 13:48:11 +02:00
os : linux
sudo : false
dist : trusty
2018-02-03 17:03:36 +01:00
env :
global :
2018-06-23 18:29:23 +02:00
- DEVKITPRO=/opt/devkitpro
2018-05-26 13:48:11 +02:00
- DEVKITPPC=/opt/devkitpro/devkitPPC
- DEVKITARM=/opt/devkitpro/devkitARM
2018-03-04 17:04:03 +01:00
- PORTLIBREPOS=$HOME/portlibrepos
2018-05-26 13:48:11 +02:00
2018-03-04 17:04:03 +01:00
cache :
directories :
2018-05-26 13:48:11 +02:00
- "$HOME/.local"
- "$PORTLIBREPOS"
- "$DEVKITPRO"
2018-02-03 17:03:36 +01:00
2018-02-03 17:05:28 +01:00
addons :
apt :
packages :
- p7zip-full
2018-02-03 17:03:36 +01:00
before_install :
2018-03-04 17:04:03 +01:00
- mkdir -p "${PORTLIBREPOS}"
2018-05-26 13:48:11 +02:00
- mkdir -p "${DEVKITPRO}"
2018-05-26 13:54:08 +02:00
- 7z x -y ./loader/libs/portlibs.zip -o${DEVKITPRO}
2018-05-26 13:48:11 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -O /tmp/devkitpro-pacman.deb; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i /tmp/devkitpro-pacman.deb; fi
2018-05-26 16:25:00 +02:00
- yes | sudo dkp-pacman -Syu devkitPPC --needed
- yes | sudo dkp-pacman -Syu devkitARM --needed
- yes | sudo dkp-pacman -Syu general-tools --needed
2018-02-03 17:03:36 +01:00
2018-05-26 13:48:11 +02:00
install :
2018-03-04 17:04:03 +01:00
- cd $PORTLIBREPOS
2018-03-04 19:02:34 +01:00
- ((git clone https://github.com/Maschell/dynamic_libs.git -b lib && (7z x -y ./dynamic_libs/libs/portlibs.zip -o${DEVKITPRO})) || (cd dynamic_libs && git pull))
- (git clone https://github.com/dimok789/libiosuhax.git || (cd libiosuhax && git pull))
2018-05-26 13:48:11 +02:00
- (git clone https://github.com/Maschell/libfat.git || (cd libfat && git pull))
2018-03-04 19:02:34 +01:00
- (git clone https://github.com/Maschell/libntfs-wiiu.git || (cd libntfs-wiiu && git pull))
- (git clone https://github.com/Maschell/libutils.git || (cd libutils && git pull))
2018-06-23 18:29:23 +02:00
- ((git clone https://github.com/Maschell/libgui.git && (7z x -y ./libgui/libs/portlibs.zip -o${DEVKITPRO})) || (cd libgui && git pull))
2018-03-04 19:02:34 +01:00
- (cd dynamic_libs && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
- (cd libiosuhax && make -j8 && make install)
- (cd libfat && make wiiu-release && make wiiu-install)
- (cd libntfs-wiiu && make wiiu-install)
- (cd libutils && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
- (cd libgui && ((make -j8 | grep -c "built ... ") && make install) || echo "no need for make install")
2018-02-03 17:03:36 +01:00
2018-05-26 13:48:11 +02:00
before_script :
- cd $TRAVIS_BUILD_DIR/
2018-02-03 17:03:36 +01:00
script :
2018-02-16 21:51:35 +01:00
- make && make install
2018-02-04 10:29:04 +01:00
- (cd loader && make)
2018-02-04 11:03:56 +01:00
before_deploy :
2018-05-26 13:48:11 +02:00
- cd $TRAVIS_BUILD_DIR/
2018-02-04 11:03:56 +01:00
- mkdir -p "wiiu/apps/wiiupluginloader"
- commit="$(git rev-parse --short=7 HEAD)"
2018-02-04 11:17:01 +01:00
- chmod +x gitrev.sh
- versiontag="$(./gitrev.sh)"
2018-02-04 11:03:56 +01:00
- (cd loader && make)
- cp loader/meta/* wiiu/apps/wiiupluginloader
2018-02-04 11:06:42 +01:00
- cp loader/wiiupluginloader.elf wiiu/apps/wiiupluginloader
2018-02-04 11:29:53 +01:00
- zip -r WiiUPluginLoader_$versiontag.zip wiiu
2018-02-04 11:03:56 +01:00
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=WiiUPluginLoader-$versiontag
- commitLog="$(git log -1 --pretty=%B)"
2018-02-18 19:03:51 +01:00
- commitMessage="$(echo -e "-\n" && echo "WiiUPluginLoader nightly build. Not a stable release. Expect bugs!\n Only use the plugins with the bundled loaded as they may not work on others." && echo -e "\nCommitlog:\n")"
2018-02-04 11:03:56 +01:00
- git tag $GIT_TAG -a -m "$commitMessage" -m "$commitLog"
- git push --quiet https://$GITHUBKEY@github.com/Maschell/WiiUPluginSystem $GIT_TAG > /dev/null 2>&1
deploy :
provider : releases
skip_cleanup : true
prerelease : true
api_key :
2018-02-04 11:12:15 +01:00
secure : "BdoeihqS+jQGq98cPyF22iCKx68stGSWa3t5ZotLcp8z9EYBODjGLOITbDxm1WsuVbC17dq4ESLogVhLSs1I3Kjfb+oESRTAh6X5tsRpxVWkvpiqk9pkMOQPLq1t1QDAKagm6BtEJ2lkMWD9a0G+Z8d7Fc6BE3TqqTf+DxVsX04ArxA9znLgOtJZxgIbSFhCPGU2PXueiWLcOzLL6u2Bp6FmPcGYOkM3K8BD45+9CjYqv+/SIv7ckJW8KI1CaNOIyrvLGv8VyQ18dAB9DRScB6kIAyInAStwQbvGbU6E+fKSJcdoqGuZIxMgBObo4KIN98pVckMsacXXuEk7BYc9lsdQkB9WhJWfJbmDoXF7Ur4pno/3rGSVD8RC96sCO7mrjKnlbACu4ybvVJvxSq6F4DRG6vpamh03AiiMHaQZG4kOC1CuOA26UG+k0kE9ErlkKa1IcfF/l0G+6UN2Ahx8UNXSu3WJR7IVj6jwVDWKnJnPwKcYjHq7Gn3UnIt+h/j1qN2KuYPZujnuaB/RCHNt0VmHylpmOeQPU4aWHq/KZHj3eSpecSXV9G7Xb9BjbK+cNft+vnmJBqQTyKJG1cWwty38bjJnAwsS249KdBWBowzZmeZoLPvdZaPrLBEfb2+p/ty2aMqKFj66ev/aQBSMkiOnIaVjFzl7UtCutm0FEAo="
2018-02-04 11:17:01 +01:00
file : WiiUPluginLoader_$versiontag.zip
2018-02-04 11:03:56 +01:00
on :
repo : Maschell/WiiUPluginSystem
tags : false
all_branches : true