2018-09-23 14:43:45 +02:00
|
|
|
sudo: required
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- wups
|
|
|
|
services:
|
|
|
|
- docker
|
2017-04-01 23:40:59 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- p7zip-full
|
2018-05-26 14:29:38 +02:00
|
|
|
before_script:
|
2018-09-23 14:43:45 +02:00
|
|
|
- git clone https://github.com/Maschell/controller_patcher_configs.git
|
|
|
|
- docker build . -t hidtovpadwups-builder
|
2017-04-01 23:40:59 +02:00
|
|
|
script:
|
2018-09-23 14:43:45 +02:00
|
|
|
- docker run -it --rm -v ${PWD}:/project hidtovpadwups-builder make
|
2017-04-01 23:40:59 +02:00
|
|
|
|
|
|
|
before_deploy:
|
2018-06-24 20:39:36 +02:00
|
|
|
- mkdir -p "wiiu/plugins"
|
2017-04-01 23:40:59 +02:00
|
|
|
- mkdir -p "wiiu/controller"
|
2018-09-23 14:43:45 +02:00
|
|
|
- cp controller_patcher_configs/*.ini ./wiiu/controller
|
2017-04-01 23:40:59 +02:00
|
|
|
- commit="$(git rev-parse --short=7 HEAD)"
|
2018-06-23 18:46:49 +02:00
|
|
|
- cp hidtovpad.mod wiiu/plugins/
|
2018-06-24 20:59:33 +02:00
|
|
|
- chmod +x gitrev.sh
|
2018-06-24 20:48:10 +02:00
|
|
|
- versiontag="$(./gitrev.sh)"
|
2018-06-24 21:27:35 +02:00
|
|
|
- zip -r hid_to_vpad_WUPS_$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"
|
2018-06-23 18:46:49 +02:00
|
|
|
- export GIT_TAG=HIDtoVPAD-WUPS-$versiontag
|
2017-04-01 23:40:59 +02:00
|
|
|
- commitLog="$(git log -1 --pretty=%B)"
|
2018-06-23 18:46:49 +02:00
|
|
|
- commitMessage="$(echo -e "-\n" && echo "HID to VPAD nightly WUPS build. Not a stable release. Expect bugs!" && echo -e "Commitlog:")"
|
2017-04-02 00:02:02 +02:00
|
|
|
- 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
|
|
|
|
|
|
|
|
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="
|
2018-06-23 18:46:49 +02:00
|
|
|
file: hid_to_vpad_WUPS_$versiontag.zip
|
2017-04-01 23:40:59 +02:00
|
|
|
on:
|
|
|
|
repo: Maschell/hid_to_vpad
|
|
|
|
tags: false
|
2018-09-23 14:43:45 +02:00
|
|
|
all_branches: false
|