1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-02-12 03:44:09 +01:00
openscale/.travis.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

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
- android-26
2017-06-10 16:55:48 +02:00
- extra-android-m2repository
2018-01-01 21:28:40 +01:00
branches:
except:
- travis-dev-build
before_script:
- sed -i -r
-e 's/applicationId "[^"]+/\0.dev/'
-e 's/(versionCode ).*/\1'$(date +%s)'/'
-e 's/versionName "[^"]+/\0-dev_'${TRAVIS_COMMIT:0:8}'/'
android_app/app/build.gradle
- sed -i -r
-e 's/(<string name="app_name">[^<]+)/\1 (dev)/'
android_app/app/src/main/res/values*/strings.xml
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
2017-10-21 12:19:46 +02:00
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
2017-10-21 13:48:48 +02:00
overwrite: true
target_commitish: $TRAVIS_COMMIT
on:
2018-01-02 00:23:34 +01:00
branch: master