Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#408 Onboard AndStatus to Travis CI and SonarQube
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Docs and examples to use: | ||
# https://docs.travis-ci.com/user/languages/android | ||
# https://github.com/codecov/example-android/blob/master/.travis.yml | ||
# https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI | ||
# http://stackoverflow.com/questions/34621124/using-travis-ci-with-android | ||
language: android | ||
jdk: oraclejdk8 | ||
env: | ||
global: | ||
- ANDROID_TARGET=android-24 | ||
- ANDROID_ABI=armeabi-v7a | ||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-24.0.1 | ||
- android-24 | ||
- extra-android-m2repository | ||
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET} | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
script: | ||
- ./gradlew build assembleAndroidTest | ||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI | ||
- emulator -avd test -no-skin -no-audio -no-window & | ||
- android-wait-for-emulator | ||
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v | ||
- ./gradlew connectedCheck | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |