mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-11-05 23:25:05 +01:00
60458c46e4
Hopefully this is working!
83 lines
2.7 KiB
YAML
83 lines
2.7 KiB
YAML
language: c
|
|
|
|
sudo: false
|
|
|
|
branches:
|
|
except:
|
|
- /^*-v[0-9]/
|
|
- /^build-[0-9a-z\-]*/
|
|
|
|
notifications:
|
|
email: false
|
|
|
|
cache:
|
|
apt: true
|
|
directories:
|
|
- "/home/travis/devkitPro"
|
|
|
|
before_cache:
|
|
- rm -rf $DEVKITPRO/*.7z
|
|
- rm -rf $DEVKITPRO/*.bz2
|
|
- rm -rf $DEVKITPRO/examples
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- p7zip-full
|
|
- zip
|
|
|
|
before_install:
|
|
- export DEVKITPRO=/home/travis/devkitPro
|
|
- export DEVKITPPC=${DEVKITPRO}/devkitPPC
|
|
- mkdir -p $DEVKITPRO
|
|
- cd $DEVKITPRO
|
|
- wget -N https://raw.githubusercontent.com/Maschell/hid_to_vpad/master/other/devkitPPCupdatePPCr27.pl
|
|
- wget -N https://raw.githubusercontent.com/Maschell/hid_to_vpad/master/other/libogc.7z
|
|
- wget -N https://raw.githubusercontent.com/Maschell/hid_to_vpad/master/other/portlibs.7z
|
|
|
|
install:
|
|
- cd $DEVKITPRO
|
|
- perl devkitPPCupdatePPCr27.pl
|
|
- 7z x -y libogc.7z
|
|
- 7z x -y portlibs.7z
|
|
- cp -R portlibs/ppc/* devkitPPC/
|
|
|
|
before_script:
|
|
- cd $TRAVIS_BUILD_DIR/
|
|
|
|
script:
|
|
- make -j8
|
|
|
|
before_deploy:
|
|
- cd $TRAVIS_BUILD_DIR/
|
|
- mkdir -p "wiiu/apps/hidtovpad"
|
|
- mkdir -p "wiiu/controller"
|
|
- git clone https://github.com/Maschell/controller_patcher_configs
|
|
- cp ./controller_patcher_configs/*.ini ./wiiu/controller
|
|
- 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
|
|
- zip -r hid_to_vpad_$versiontag.zip wiiu meta.xml icon.png
|
|
- 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)"
|
|
- commitMessage="$(echo -e "-\n" && echo "HID to VPAD nightly build. Not a stable release. Expect bugs!" && echo -e "\nCommitlog:\n" && echo $commitLog)"
|
|
- git tag $GIT_TAG -a -m "$commitMessage"
|
|
- git push --quiet https://$GITHUBKEY@github.com/Maschell/hid_to_vpad $GIT_TAG > /dev/null 2>&1
|
|
|
|
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
|
|
all_branches: true
|
|
|