Created
October 30, 2020 11:47
-
-
Save derysudrajat/63e6315c057a268d88fc6a3b6d3cb9fd to your computer and use it in GitHub Desktop.
Travis yml Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: android | |
jdk: oraclejdk8 | |
envi: | |
global: | |
- ANDROID_API_LEVEL=30 | |
- ANDROID_BUILD_TOOLS_VERSION=30.0.2 | |
android: | |
licenses: | |
- 'android-sdk-preview-license-.+' | |
- 'android-sdk-license-.+' | |
- 'google-gdk-license-.+' | |
components: | |
# Uncomment the lines below if you want to | |
# use the latest revision of Android SDK Tools | |
- tools | |
- platform-tools | |
# The BuildTools version used by your project | |
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | |
# The SDK version used to compile your project | |
- android-$ANDROID_API_LEVEL | |
# Additional components | |
- extra-google-google_play_services | |
- extra-google-m2repository | |
- extra-android-m2repository | |
- addon-google-apis-google-$ANDROID_API_LEVEL | |
before_script: | |
- yes | sdkmanager "platforms;android-30" | |
script: | |
- chmod +x ./gradlew | |
- ./gradlew test | |
- ./gradlew assemblerelease | |
deploy: | |
provider: releases | |
api_key: $GITHUB_API_KEY | |
file: $TRAVIS_BUILD_DIR/app/release/app-release.apk | |
skip_cleanup: true | |
name: dev-build-$TRAVIS_TAG | |
body: Automatic build of $TRAVIS_BRANCH ($TRAVIS_COMMIT) built by Travis CI on $(date + '%F %T %Z'). | |
prerelease: true | |
overwrite: true | |
target_commitish: $TRAVIS_COMMIT | |
on: | |
tags: true | |
after_deploy: | |
- rm -rf $TRAVIS_BUILD_DIR/app/build/outputs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment