mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
commit
6c1a30c70e
5 changed files with 26 additions and 39 deletions
24
.drone.yml
Normal file
24
.drone.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
pipeline:
|
||||
test:
|
||||
image: nextcloudci/android:android-2
|
||||
commands:
|
||||
- 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 &
|
||||
- ./wait_for_emulator.sh
|
||||
# build app and assemble APK, in debug mode
|
||||
- ./gradlew assembleDebug
|
||||
# run all the local unit tests of app module
|
||||
- ./gradlew :testDebug
|
||||
# run all the instrumented tests of app module - DISABLED until we get an stable setup for Espresso in Travis
|
||||
# - ./gradlew connectedDebugAndroidTest --info
|
||||
# install app, then assemble and install instrumented tests of app module
|
||||
- ./gradlew :installDebug
|
||||
- ./gradlew :installDebugAndroidTest
|
||||
# run sample instrumented unit test
|
||||
# TODO fails because test runner is not available
|
||||
#- adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
|
||||
|
||||
environment:
|
||||
- ANDROID_TARGET=android-23
|
||||
- ANDROID_ABI=armeabi-v7a
|
||||
- LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/opt/android-sdk-linux/tools/lib64/gles_mesa/
|
37
.travis.yml
37
.travis.yml
|
@ -1,37 +0,0 @@
|
|||
sudo: false
|
||||
language: android
|
||||
android:
|
||||
components:
|
||||
# first 'tools' updates SDK tools 'til last version ** in remote repository number 10 **
|
||||
- tools
|
||||
# second 'tools' updates SDK tools 'til last version ** in remote repository number 11 ** (current last one)
|
||||
- tools
|
||||
- platform-tools
|
||||
- build-tools-23.0.3
|
||||
- android-23
|
||||
- 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
|
||||
script:
|
||||
# build app and assemble APK, in debug mode
|
||||
- ./gradlew assembleDebug
|
||||
# run all the local unit tests of app module
|
||||
- ./gradlew :testDebug
|
||||
# run all the instrumented tests of app module - DISABLED until we get an stable setup for Espresso in Travis
|
||||
# - ./gradlew connectedDebugAndroidTest --info
|
||||
# install app, then assemble and install instrumented tests of app module
|
||||
- ./gradlew :installDebug
|
||||
- ./gradlew :installDebugAndroidTest
|
||||
# run sample instrumented unit test
|
||||
- adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
|
||||
env:
|
||||
global:
|
||||
- secure: h4Y7ZvgbvOj5T71ubRcw3Fy3KXF8qHugRFLGK3q2R9YuRsDAf8XH+Y/UiXyH8sac2QSj7Zlny1kA1DEJgwhTXs9wsAVKVJCQNTJGEvhm/4uQgPeNMzMv07Lqe8V+KUBsFH5qhfPJO357ERW0k2f2qljoLSHtHStclt7iGvFdynA=
|
||||
- secure: o9L6lXWpXowhQSdiUSmajliBUkQ6n7NrBUqhC09lqe7yXSGhEsgGRXqHoT3q2B4uIqGSiLCa9HQbW0dfDQCs+pADmzHIl3zbTViR88TSaIhOiTrqMUUl5iaO++pneZ2TzgU9bbGHbl6Ixjc6iALH2+F7P+RUM6vLTNPcfnCJa3g=
|
||||
- secure: ydxZrS7+1ht3p1tC6DE9W9bjLQGjMkwFBwyhNmcdEM6538kN8ZCBQe7NxSsCrC1nSDBLQ17Cziv0XJHl/pCfPrbkrPPgVFpjDfPeqC2zcGcCNcFQUEylXCvQ4uRU2hKL6dPqCsOQ57Pv3qwpPoprl/usoN5Wh8V7BKplU88ZaYM=
|
||||
matrix:
|
||||
- ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
|
|
@ -10,7 +10,7 @@ buildscript {
|
|||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.1.3'
|
||||
classpath 'com.android.tools.build:gradle:2.2.0'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
|
|
0
wait_for_emulator.sh
Normal file → Executable file
0
wait_for_emulator.sh
Normal file → Executable file
Loading…
Reference in a new issue