Commit 791d5e58 authored by Ricki Hirner's avatar Ricki Hirner

Include OpenTasks apk for testing

parent 76068749
...@@ -6,12 +6,11 @@ before_script: ...@@ -6,12 +6,11 @@ before_script:
cache: cache:
paths: paths:
- .gradle/ - .gradle/
- apk/
test: test:
script: script:
- (cd /sdk/emulator; ./emulator @test -no-audio -no-window & wait-for-emulator.sh) - (cd /sdk/emulator; ./emulator @test -no-audio -no-window & wait-for-emulator.sh)
- (mkdir -p apk && cd apk && wget -nc -q https://f-droid.org/repo/org.dmfs.tasks_481.apk && adb install org.dmfs.tasks_481.apk) - adb install src/androidTest/resources/org.dmfs.tasks_6760.apk
- ./gradlew check connectedCheck - ./gradlew check connectedCheck
artifacts: artifacts:
paths: paths:
......
...@@ -69,6 +69,8 @@ dependencies { ...@@ -69,6 +69,8 @@ dependencies {
task grantPermissions(dependsOn: 'installDebugAndroidTest') { task grantPermissions(dependsOn: 'installDebugAndroidTest') {
doFirst { doFirst {
def adb = android.getAdbExe().toString() def adb = android.getAdbExe().toString()
// grant permissions
[ [
'android.permission.READ_CALENDAR', 'android.permission.READ_CALENDAR',
'android.permission.WRITE_CALENDAR', 'android.permission.WRITE_CALENDAR',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment