2017-06-10 16:55:48 +02:00
|
|
|
language: android
|
|
|
|
jdk: oraclejdk8
|
|
|
|
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- platform-tools
|
|
|
|
- tools
|
2017-11-21 00:56:19 +01:00
|
|
|
- build-tools-26.0.2
|
2018-01-01 18:58:21 +01:00
|
|
|
- android-26
|
2017-06-10 16:55:48 +02:00
|
|
|
- extra-android-m2repository
|
|
|
|
|
2018-01-01 19:14:50 +01:00
|
|
|
before_deploy:
|
|
|
|
- ln -s app/build/outputs/apk/debug/app-debug.apk openScale-dev-build.apk
|
|
|
|
- git tag -f travis-dev-build
|
|
|
|
- git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git
|
|
|
|
- git push -f gh travis-dev-build
|
|
|
|
- git remote remove gh
|
|
|
|
|
2017-10-21 12:03:40 +02:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api-key: $GITHUB_API_KEY
|
2018-01-01 19:14:50 +01:00
|
|
|
file: openScale-dev-build.apk
|
2017-10-21 12:19:46 +02:00
|
|
|
skip_cleanup: true
|
2017-10-21 12:03:40 +02:00
|
|
|
name: "openScale dev build"
|
|
|
|
body: "Automatically openScale dev build by Travis CI"
|
|
|
|
prerelease: true
|
2017-10-21 13:48:48 +02:00
|
|
|
overwrite: true
|
2018-01-01 19:14:50 +01:00
|
|
|
target_commitish: $TRAVIS_COMMIT
|
|
|
|
on:
|
|
|
|
branch: travis
|
2017-10-21 12:28:19 +02:00
|
|
|
|
2017-12-29 23:36:55 +01:00
|
|
|
script: cd android_app && ./gradlew testDebug assembleDebug
|