[General] Updated travis script to create nightlies

This commit is contained in:
Maschell 2018-02-04 11:03:56 +01:00
parent 8196007558
commit 79a55a58f1

View File

@ -36,3 +36,32 @@ script:
- make
- (cd loader && make)
- (cd example_plugin && make)
before_deploy:
- mkdir -p "wiiu/apps/wiiupluginloader"
- commit="$(git rev-parse --short=7 HEAD)"
- (cd loader && chmod +x gitrev.sh)
- (cd loader && versiontag="$(./gitrev.sh)")
- (cd loader && make)
- cp loader/meta/* wiiu/apps/wiiupluginloader
- cp loader/wiiupluginloader.elf sd/wiiu/apps/wiiupluginloader
- zip -r wiiupluginloader_$versiontag.zip wiiu example_plugin/bin/example_plugin.mod
- 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:
secure: "PmwfPLKcbTnoymO2hJ68clJqQimMPfsanpA2vBSVgI7yHfsYkBJ4r9+a+7Fk6flPbVFCtWPFG+l/Tequ3UFOF7oUGmZ8HDjn7GHTLoApeqR7xFayGIlLNUvt5d/G2z47VNepDRHCjuXmEPuf4IcsXgZPO2LPXLxEConc0E+HtuFO1ne21mP1lEsFKuTkuWhl9gcGgjGti6MuBHYtD5qVfDmxgE3x7Io9Gps2Tl57OY4/CIFzxgp9R4c2r7LVhlkUs5V+Zu8l8Ip7MFZgz/u0yKRpCmCv+DTR2s/ALYFznLVMcEf8twK2ik/AryLoMOJ1tfNs1nW95KggMCM6n/q3puZl89rO8PJIMvrppo5Fi1uxLHeGmixoFqJ2Q4Kn4jPJjlkezjkcua24vO1aUl7XskUdXDFGhXxHIno2v7r25kKc7UxLk02UvcujELxc8dZOkbzAo+nHDRWV72U1b3TuE/Rjtd3/6rS0JX5fP7odvfdbKLn/cLkYPbJ+poBKjEYOrNeGFhBCa4XK5qS4O5Fj2g2gqjgE4XIe1ieBo7V6yHElxBbonfbWLWY8/B4oGppAZR+il7uAnPfuH7LUN6IY+GYSda2Yeo8SuW/z0H/f8xRB1z0vTZCAP+M6sLrjSOGq2bi2ZLuwwg5TtL1j7OSHwYm4fo8cGh190I1youajuf0="
file: WiiUPluginLoader$versiontag.zip
on:
repo: Maschell/WiiUPluginSystem
tags: false
all_branches: true