1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-02-11 19:34:11 +01:00

Include commit in version when building on travis

This commit is contained in:
Erik Johansson 2018-01-01 19:41:20 +01:00
parent 1ccb717041
commit 8c00e661fe

View File

@ -9,6 +9,11 @@ android:
- android-26
- extra-android-m2repository
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
@ -28,5 +33,3 @@ deploy:
target_commitish: $TRAVIS_COMMIT
on:
branch: travis
script: cd android_app && ./gradlew testDebug assembleDebug