2018-02-03 17:03:36 +01:00
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DEVKITPRO=$HOME/devkitPro
|
|
|
|
- DEVKITPPC=${DEVKITPRO}/devkitPPC
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ${DEVKITPRO}
|
|
|
|
|
2018-02-03 17:05:28 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- p7zip-full
|
|
|
|
|
2018-02-03 17:03:36 +01:00
|
|
|
before_install:
|
|
|
|
- mkdir -p "${DEVKITPRO}"
|
|
|
|
- wget http://download.sourceforge.net/devkitpro/devkitPPC_r29-1-x86_64-linux.tar.bz2 -O devkitPPC-linux.tar.bz2
|
|
|
|
- wget https://github.com/Maschell/dynamic_libs/archive/lib.tar.gz -O dynamic_libs.tar.gz
|
|
|
|
- wget https://github.com/Maschell/libutils/archive/master.tar.gz -O libutils.tar.gz
|
2018-02-11 18:33:07 +01:00
|
|
|
- wget https://github.com/aliaspider/libfat/archive/master.tar.gz -O libfat.tar.gz
|
|
|
|
- wget https://github.com/dimok789/libiosuhax/archive/master.tar.gz -O libiosuhax.tar.gz
|
|
|
|
- wget https://github.com/Maschell/libntfs-wiiu/archive/master.tar.gz -O libntfs.tar.gz
|
2018-02-03 17:03:36 +01:00
|
|
|
|
|
|
|
install:
|
|
|
|
- tar -xjf devkitPPC-linux.tar.bz2 -C ${DEVKITPRO}/
|
|
|
|
- tar -xzvf dynamic_libs.tar.gz
|
|
|
|
- tar -xzvf libutils.tar.gz
|
2018-02-11 18:33:07 +01:00
|
|
|
- tar -xzvf libfat.tar.gz
|
|
|
|
- tar -xzvf libiosuhax.tar.gz
|
|
|
|
- tar -xzvf libntfs.tar.gz
|
|
|
|
- tar -xzvf libiosuhax.tar.gz
|
2018-02-03 17:03:36 +01:00
|
|
|
- 7z x -y ./dynamic_libs-lib/libs/portlibs.zip -o${DEVKITPRO}
|
2018-02-11 18:33:07 +01:00
|
|
|
- (cd libiosuhax-master && make -j8 && make install)
|
|
|
|
- (cd libfat-master && make wiiu-release && make wiiu-install)
|
|
|
|
- (cd libntfs-wiiu-master && make wiiu-install)
|
2018-02-03 17:03:36 +01:00
|
|
|
- (cd dynamic_libs-lib && make -j8 && make install)
|
|
|
|
- (cd libutils-master && make -j8 && make install)
|
|
|
|
|
|
|
|
script:
|
2018-02-04 10:29:04 +01:00
|
|
|
- make
|
|
|
|
- (cd loader && make)
|
2018-02-04 11:03:56 +01:00
|
|
|
- (cd example_plugin && make)
|
2018-02-10 17:08:18 +01:00
|
|
|
- (cd plugins/padcon && make)
|
2018-02-11 18:33:07 +01:00
|
|
|
- (cd plugins/sdcafiine && make)
|
2018-02-04 11:03:56 +01:00
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- mkdir -p "wiiu/apps/wiiupluginloader"
|
2018-02-04 11:29:53 +01:00
|
|
|
- mkdir -p "wiiu/plugins"
|
2018-02-04 11:03:56 +01:00
|
|
|
- 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)
|
2018-02-11 03:40:29 +01:00
|
|
|
- cp example_plugin/example_plugin.mod wiiu/plugins
|
|
|
|
- cp plugins/padcon/padcon.mod wiiu/plugins
|
2018-02-11 18:33:07 +01:00
|
|
|
- cp plugins/sdcafiine/sdcafiine.mod wiiu/plugins
|
2018-02-04 11:03:56 +01:00
|
|
|
- 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)"
|
|
|
|
- commitMessage="$(echo -e "-\n" && echo "WiiUPluginLoader nightly build. Not a stable release. Expect bugs!" && echo -e "\nCommitlog:\n")"
|
|
|
|
- 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
|