mirror of
https://github.com/oliexdev/openScale.git
synced 2025-02-11 19:34:11 +01:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
language: android
|
|
jdk: oraclejdk8
|
|
|
|
android:
|
|
components:
|
|
- platform-tools
|
|
- tools
|
|
- build-tools-26.0.2
|
|
- android-26
|
|
- extra-android-m2repository
|
|
|
|
branches:
|
|
except:
|
|
- travis-dev-build
|
|
|
|
before_script:
|
|
- sed -i -re 's/(versionName ".*)"/\1-dev_'${TRAVIS_COMMIT:0:8}'"/' android_app/app/build.gradle
|
|
|
|
script: cd android_app && ./gradlew testDebug assembleDebug
|
|
|
|
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
|
|
|
|
deploy:
|
|
provider: releases
|
|
api-key: $GITHUB_API_KEY
|
|
file: openScale-dev-build.apk
|
|
skip_cleanup: true
|
|
name: openScale development build
|
|
body: Automatic openScale development build of $TRAVIS_BRANCH ($TRAVIS_COMMIT) built by Travis CI on $(date +'%F %T %Z').
|
|
prerelease: true
|
|
overwrite: true
|
|
target_commitish: $TRAVIS_COMMIT
|
|
on:
|
|
branch: master
|