mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-13 12:14:19 +02:00
setting up travis CI config files
This commit is contained in:
16
.travis.yml
Normal file
16
.travis.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
language: android
|
||||||
|
jdk: oraclejdk8
|
||||||
|
|
||||||
|
android:
|
||||||
|
components:
|
||||||
|
- platform-tools
|
||||||
|
- tools
|
||||||
|
- build-tools-25.0.2
|
||||||
|
- android-24
|
||||||
|
- extra-android-m2repository
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- chmod +x ./android_app/upload_apk.sh
|
||||||
|
- ./android_app/upload_apk.sh
|
||||||
|
|
||||||
|
script: ./android_app/gradlew build
|
19
android_app/upload_apk.sh
Normal file
19
android_app/upload_apk.sh
Normal 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"
|
Reference in New Issue
Block a user