1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-02-11 19:34:11 +01:00
openscale/.travis.yml
2018-01-02 00:15:12 +01:00

40 lines
971 B
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 dev build"
body: "Automatically openScale dev build by Travis CI"
prerelease: true
overwrite: true
target_commitish: $TRAVIS_COMMIT
on:
branch: travis