Skip to content

Instantly share code, notes, and snippets.

@oscarg798
Created February 20, 2019 15:21
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 oscarg798/b3fd52a61a07f968a6473e6a648d4029 to your computer and use it in GitHub Desktop.
Save oscarg798/b3fd52a61a07f968a6473e6a648d4029 to your computer and use it in GitHub Desktop.
Travis Android unit tests config file
language: android
jdk: oraclejdk8
branches:
only:
- develop #or the branch you want to observe
notifications:
slack: #your_slack_id
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
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
script:
#I have diferent modules so I run the tests on those
- ./gradlew data:clean data:testDebugUnitTest --stacktrace
- ./gradlew domain:clean domain:testDebugUnitTest --stacktrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment