Skip to content

Commit

Permalink
#408 Onboard AndStatus to Travis CI and SonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
yvolk committed Aug 13, 2016
1 parent 52bb763 commit c0f1750
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
@@ -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)

0 comments on commit c0f1750

Please sign in to comment.