.drone.yml 1.2 KB

123456789101112131415161718192021222324
  1. pipeline:
  2. test:
  3. image: nextcloudci/android:android-7
  4. commands:
  5. - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
  6. - emulator -avd test -no-window &
  7. - ./wait_for_emulator.sh
  8. # build app and assemble APK, in debug mode
  9. - ./gradlew assembleDebug
  10. # run all the local unit tests of app module
  11. - ./gradlew :testDebug
  12. # run all the instrumented tests of app module - DISABLED until we get an stable setup for Espresso in Travis
  13. # - ./gradlew connectedDebugAndroidTest --info
  14. # install app, then assemble and install instrumented tests of app module
  15. - ./gradlew :installDebug
  16. - ./gradlew :installDebugAndroidTest
  17. # run sample instrumented unit test
  18. # TODO fails because test runner is not available
  19. #- adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
  20. environment:
  21. - ANDROID_TARGET=android-24
  22. - ANDROID_ABI=armeabi-v7a
  23. - LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/opt/android-sdk-linux/tools/lib64/gles_mesa/