2017-04-01 23:40:59 +02:00
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
|
2017-12-16 11:43:37 +01:00
|
|
|
os:
|
|
|
|
- linux
|
2017-04-01 23:40:59 +02:00
|
|
|
|
2017-12-16 11:43:37 +01:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DEVKITPRO=$HOME/devkitPro
|
|
|
|
- DEVKITPPC=${DEVKITPRO}/devkitPPC
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2017-12-16 11:43:37 +01:00
|
|
|
- ${DEVKITPRO}
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- p7zip-full
|
2017-12-16 11:45:24 +01:00
|
|
|
- zip
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
before_install:
|
2017-12-16 11:43:37 +01:00
|
|
|
- mkdir -p "${DEVKITPRO}"
|
2018-02-25 13:45:28 +01:00
|
|
|
- wget https://downloads.devkitpro.org/devkitPPC_r29-1-x86_64-linux.tar.bz2 -O devkitPPC-linux.tar.bz2
|
2017-12-16 11:43:37 +01:00
|
|
|
- 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
|
|
|
|
- wget https://github.com/Maschell/libgui/archive/master.tar.gz -O libgui.tar.gz
|
|
|
|
- wget https://github.com/Maschell/controller_patcher/archive/master.tar.gz -O controller_patcher.tar.gz
|
|
|
|
- wget https://github.com/Maschell/controller_patcher_configs/archive/master.tar.gz -O controller_patcher_configs.tar.gz
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
install:
|
2017-12-16 11:43:37 +01:00
|
|
|
- tar -xjf devkitPPC-linux.tar.bz2 -C ${DEVKITPRO}/
|
|
|
|
- tar -xzvf dynamic_libs.tar.gz
|
|
|
|
- tar -xzvf libutils.tar.gz
|
|
|
|
- tar -xzvf libgui.tar.gz
|
|
|
|
- tar -xzvf controller_patcher.tar.gz
|
|
|
|
- tar -xzvf controller_patcher_configs.tar.gz
|
|
|
|
- 7z x -y ./dynamic_libs-lib/libs/portlibs.zip -o${DEVKITPRO}
|
|
|
|
- 7z x -y ./libgui-master/libs/portlibs.zip -o${DEVKITPRO}
|
|
|
|
- (cd dynamic_libs-lib && make -j8 && make install)
|
|
|
|
- (cd libutils-master && make -j8 && make install)
|
|
|
|
- (cd libgui-master && make -j8 && make install)
|
|
|
|
- (cd controller_patcher-master && make -j8 && make install)
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
- make -j8
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- mkdir -p "wiiu/apps/hidtovpad"
|
2017-05-06 20:00:35 +02:00
|
|
|
- mkdir -p "wiiu/apps/hidtovpad/languages"
|
2017-04-01 23:40:59 +02:00
|
|
|
- mkdir -p "wiiu/controller"
|
2017-12-16 11:43:37 +01:00
|
|
|
- cp ./controller_patcher_configs-master/*.ini ./wiiu/controller
|
2017-05-06 20:00:35 +02:00
|
|
|
- cp ./languages/*.lang ./wiiu/apps/hidtovpad/languages
|
2017-04-01 23:40:59 +02:00
|
|
|
- commit="$(git rev-parse --short=7 HEAD)"
|
|
|
|
- chmod +x gitrev.sh
|
|
|
|
- versiontag="$(./gitrev.sh)"
|
|
|
|
- make
|
|
|
|
- cp meta/* wiiu/apps/hidtovpad
|
|
|
|
- cp hidtovpad.elf wiiu/apps/hidtovpad
|
2017-04-28 17:14:07 +02:00
|
|
|
- zip -r hid_to_vpad_$versiontag.zip wiiu
|
2017-04-01 23:40:59 +02:00
|
|
|
- git config --global user.email "builds@travis-ci.com"
|
|
|
|
- git config --global user.name "Travis CI"
|
|
|
|
- export GIT_TAG=HIDtoVPAD-$versiontag
|
|
|
|
- commitLog="$(git log -1 --pretty=%B)"
|
2017-04-02 00:02:02 +02:00
|
|
|
- commitMessage="$(echo -e "-\n" && echo "HID to VPAD nightly build. Not a stable release. Expect bugs!" && echo -e "\nCommitlog:\n")"
|
|
|
|
- git tag $GIT_TAG -a -m "$commitMessage" -m "$commitLog"
|
2017-04-01 23:40:59 +02:00
|
|
|
- git push --quiet https://$GITHUBKEY@github.com/Maschell/hid_to_vpad $GIT_TAG > /dev/null 2>&1
|
2017-04-28 17:14:07 +02:00
|
|
|
- chmod +x ftpupload.sh
|
|
|
|
- ./ftpupload.sh
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true
|
|
|
|
prerelease: true
|
|
|
|
api_key:
|
|
|
|
secure: "r2jF3dwTUdeo+0Rg5cDuJhxJU3kVnsEbCfIxRrL0QLjPQUCIPLQyqZCC2ApBW1VrOZ7oH6HUW1RhXdnu2izN2Bsis5jPmCJl4vDDb6tWvdW/h2BbZOiOqsGkjTVxBYs6ZddnENxrJBUBHyDbPijERr8lVMhs066S0yPQvVGWG9K+ClXkS2bO/Mq3wO/CzQNv93LrZXWGgkB9Ej2bzcYrt+ieA3jkVOn9K3PbLapRQCNec4RM3R+dJT4uQmrih892e4+JzZlyf4HGmIFH8xNIPQvXH5wD1nGcTzXDC6eQw5ljMPaxhWn2YtIv9knUKjhWzEe9fx8e+380SjpTTP0ir6I+EF2Y/A5spYJMuJDHLSvU2Qq1BwfE4pm/Om+/wRlTaPC8FYUuQPc1YdBLRYBpd3YwlJFEZSi4IEUbEOjOKDhagw0cYHQC42zypsm1aW+q8eVSeylsyjxOR2eawVHIzvOoMKA0FHIdA7zNFxh50y3EdYJw+L6/4wU14743ifT5TOrMuTWfSQXY4eBBkjMytkkhMsJfbs2xHHZkBgl2249Z93odr+2C5WbOqnEQRhPZunOxrMO8bga/K50wmTfOPSxkFJOxXnOuXlGWd0TsUeAtGg7Nk3pRaPVXhOMc+gXb/Ktdj6S11bUNO4VLXb4z7FmMy0yxmxrw3elpXDjaB/U="
|
|
|
|
file: hid_to_vpad_$versiontag.zip
|
|
|
|
on:
|
|
|
|
repo: Maschell/hid_to_vpad
|
|
|
|
tags: false
|
2017-04-01 23:43:06 +02:00
|
|
|
all_branches: true
|