.travis.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. sudo: false
  2. language: android
  3. android:
  4. components:
  5. # first 'tools' updates SDK tools 'til last version ** in remote repository number 10 **
  6. - tools
  7. # second 'tools' updates SDK tools 'til last version ** in remote repository number 11 ** (current last one)
  8. - tools
  9. - platform-tools
  10. - build-tools-23.0.3
  11. - android-23
  12. - extra-android-m2repository
  13. - sys-img-armeabi-v7a-android-23
  14. before_install:
  15. - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
  16. - emulator -avd test -no-skin -no-audio -no-window &
  17. - chmod +x ./wait_for_emulator.sh
  18. - ./wait_for_emulator.sh
  19. script:
  20. # build app and assemble APK, in debug mode
  21. - ./gradlew assembleDebug
  22. # run all the local unit tests of app module
  23. - ./gradlew :testDebug
  24. # run all the instrumented tests of app module - DISABLED until we get an stable setup for Espresso in Travis
  25. # - ./gradlew connectedDebugAndroidTest --info
  26. # install app, then assemble and install instrumented tests of app module
  27. - ./gradlew :installDebug
  28. - ./gradlew :installDebugAndroidTest
  29. # run sample instrumented unit test
  30. - adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
  31. env:
  32. global:
  33. - secure: h4Y7ZvgbvOj5T71ubRcw3Fy3KXF8qHugRFLGK3q2R9YuRsDAf8XH+Y/UiXyH8sac2QSj7Zlny1kA1DEJgwhTXs9wsAVKVJCQNTJGEvhm/4uQgPeNMzMv07Lqe8V+KUBsFH5qhfPJO357ERW0k2f2qljoLSHtHStclt7iGvFdynA=
  34. - secure: o9L6lXWpXowhQSdiUSmajliBUkQ6n7NrBUqhC09lqe7yXSGhEsgGRXqHoT3q2B4uIqGSiLCa9HQbW0dfDQCs+pADmzHIl3zbTViR88TSaIhOiTrqMUUl5iaO++pneZ2TzgU9bbGHbl6Ixjc6iALH2+F7P+RUM6vLTNPcfnCJa3g=
  35. - secure: ydxZrS7+1ht3p1tC6DE9W9bjLQGjMkwFBwyhNmcdEM6538kN8ZCBQe7NxSsCrC1nSDBLQ17Cziv0XJHl/pCfPrbkrPPgVFpjDfPeqC2zcGcCNcFQUEylXCvQ4uRU2hKL6dPqCsOQ57Pv3qwpPoprl/usoN5Wh8V7BKplU88ZaYM=
  36. matrix:
  37. - ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a