1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-28 10:40:47 +02:00

setting up travis CI config files

This commit is contained in:
OliE
2017-06-10 16:55:48 +02:00
parent 13f45072fd
commit b5e9665377
2 changed files with 35 additions and 0 deletions

19
android_app/upload_apk.sh Normal file
View File

@@ -0,0 +1,19 @@
#go to home and setup git
cd $HOME
git config --global user.email "olie.xdev@googlemail.com"
git config --global user.name "oliexdev"
#clone the repository
git clone --quiet --branch=master https://oliexdev:$GITHUB_API_KEY@github.com/oliexdev/openScale master > /dev/null
#copy generated apk from build folder to repository
cp app/build/outputs/apk/app-debug.apk $HOME/master/openScale-dev-build.apk
#go into repository
cd master
#add, commit and push apk file
git add -f openScale-dev-build.apk
git commit -m "openScale dev build $TRAVIS_BUILD_NUMBER by Travis CI [skip ci]" openScale-dev-build.apk
git push -fq origin master > /dev/null
echo -e "Done\n"