2015-08-21 16:47:24 +03:00
|
|
|
sudo: false
|
2014-10-15 14:57:10 +04:00
|
|
|
language: android
|
|
|
|
android:
|
|
|
|
components:
|
2016-05-10 14:53:00 +03:00
|
|
|
# first 'tools' updates SDK tools 'til last version ** in remote repository number 10 **
|
2016-05-06 14:45:23 +03:00
|
|
|
- tools
|
2016-05-10 14:53:00 +03:00
|
|
|
# second 'tools' updates SDK tools 'til last version ** in remote repository number 11 ** (current last one)
|
2016-05-09 17:09:06 +03:00
|
|
|
- tools
|
|
|
|
- platform-tools
|
2016-05-05 11:15:09 +03:00
|
|
|
- build-tools-23.0.3
|
|
|
|
- android-23
|
2016-05-06 14:45:23 +03:00
|
|
|
- extra-android-m2repository
|
|
|
|
- sys-img-armeabi-v7a-android-23
|
|
|
|
before_install:
|
|
|
|
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
|
|
|
|
- emulator -avd test -no-skin -no-audio -no-window &
|
|
|
|
- chmod +x ./wait_for_emulator.sh
|
|
|
|
- ./wait_for_emulator.sh
|
2014-01-21 21:07:53 +04:00
|
|
|
script:
|
2016-05-06 14:45:23 +03:00
|
|
|
# build app and assemble APK, in debug mode
|
|
|
|
- ./gradlew assembleDebug
|
2016-05-06 16:38:12 +03:00
|
|
|
# run all the local unit tests of app module
|
|
|
|
- ./gradlew :testDebug
|
2016-05-10 10:37:04 +03:00
|
|
|
# run all the instrumented tests of app module - DISABLED until we get an stable setup for Espresso in Travis
|
|
|
|
# - ./gradlew connectedDebugAndroidTest --info
|
2016-05-06 16:38:12 +03:00
|
|
|
# install app, then assemble and install instrumented tests of app module
|
2016-05-10 10:37:04 +03:00
|
|
|
- ./gradlew :installDebug
|
|
|
|
- ./gradlew :installDebugAndroidTest
|
2016-05-06 14:45:23 +03:00
|
|
|
# run sample instrumented unit test
|
2016-05-10 10:37:04 +03:00
|
|
|
- adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
|
2016-05-06 09:46:50 +03:00
|
|
|
env:
|
|
|
|
global:
|
2016-05-09 15:37:08 +03:00
|
|
|
- secure: h4Y7ZvgbvOj5T71ubRcw3Fy3KXF8qHugRFLGK3q2R9YuRsDAf8XH+Y/UiXyH8sac2QSj7Zlny1kA1DEJgwhTXs9wsAVKVJCQNTJGEvhm/4uQgPeNMzMv07Lqe8V+KUBsFH5qhfPJO357ERW0k2f2qljoLSHtHStclt7iGvFdynA=
|
|
|
|
- secure: o9L6lXWpXowhQSdiUSmajliBUkQ6n7NrBUqhC09lqe7yXSGhEsgGRXqHoT3q2B4uIqGSiLCa9HQbW0dfDQCs+pADmzHIl3zbTViR88TSaIhOiTrqMUUl5iaO++pneZ2TzgU9bbGHbl6Ixjc6iALH2+F7P+RUM6vLTNPcfnCJa3g=
|
|
|
|
- secure: ydxZrS7+1ht3p1tC6DE9W9bjLQGjMkwFBwyhNmcdEM6538kN8ZCBQe7NxSsCrC1nSDBLQ17Cziv0XJHl/pCfPrbkrPPgVFpjDfPeqC2zcGcCNcFQUEylXCvQ4uRU2hKL6dPqCsOQ57Pv3qwpPoprl/usoN5Wh8V7BKplU88ZaYM=
|
2016-05-06 14:45:23 +03:00
|
|
|
matrix:
|
|
|
|
- ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
|