Skip to content

Instantly share code, notes, and snippets.

@doneill
Created April 14, 2020 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doneill/8f89c2b8dc1d54f58aeb7bcfd6dd19b6 to your computer and use it in GitHub Desktop.
Save doneill/8f89c2b8dc1d54f58aeb7bcfd6dd19b6 to your computer and use it in GitHub Desktop.
Build Android debug app on Travis CI
language: android
sudo: required
jdk: oraclejdk8
branches:
only:
- master # build master branch only
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
- ANDROID_API=29
- EMULATOR_API=21
- ANDROID_BUILD_TOOLS=29.0.2
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
script: ./gradlew clean assembleDebug --info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment