Skip to content

Instantly share code, notes, and snippets.

@hrskrs
Created May 11, 2017 10:00
Show Gist options
  • Save hrskrs/302805da78bbea2882b362ece9debdda to your computer and use it in GitHub Desktop.
Save hrskrs/302805da78bbea2882b362ece9debdda to your computer and use it in GitHub Desktop.
TravisCI Android Configuration
language: android
jdk:
- oraclejdk8
android:
components:
# Use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-25.0.1
# The SDK version used to compile your project
- android-25
# Additional components
- extra-android-support
- extra-android-m2repository
# Run emulator(s) during tests
- sys-img-armeabi-v7a-android-25 # emulator
- sys-img-x86-android-25 # emulator with google APIs
licenses:
- android-sdk-license-.+
- '.+'
script:
- ./gradlew clean assemble build check --stacktrace
before_install:
- chmod +x gradlew
# ConstraintLayout issue fix
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
branches:
only:
- dev
- master
after_success:
- bash <(curl -s https://codecov.io/bash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment