From 79a55a58f1b6334c4bf6a93ffb94ea94d752fd82 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 4 Feb 2018 11:03:56 +0100 Subject: [PATCH] [General] Updated travis script to create nightlies --- .travis.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c60f7c3..601164e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,4 +35,33 @@ install: script: - make - (cd loader && make) -- (cd example_plugin && make) \ No newline at end of file +- (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 \ No newline at end of file