Skip to content

Commit e0514a6

Browse files
committed
Reinstate instrumented tests.
1 parent 00d6226 commit e0514a6

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ addons:
55
packages:
66
- w3m
77

8+
env:
9+
global:
10+
- ANDROID_TARGET=android-27
11+
- ANDROID_ABI=armeabi-v7a
12+
- ADB_INSTALL_TIMEOUT=12 # in minutes
13+
814
jdk:
915
- oraclejdk8
1016

@@ -15,12 +21,18 @@ android:
1521
- build-tools-27.0.3
1622
- extra-google-m2repository
1723
- extra-android-m2repository
18-
- android-27
24+
- ${ANDROID_TARGET}
25+
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
1926
licenses:
2027
- 'android-sdk-license-.+'
2128

29+
before_script:
30+
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
31+
- emulator -avd test -no-audio -no-window -no-boot-anim &
32+
- android-wait-for-emulator
33+
2234
script:
23-
- ./gradlew clean check
35+
- ./gradlew clean check connectedCheck jacocoTestReport
2436

2537
after_success:
2638
- bash <(curl -s https://codecov.io/bash)

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apply from: '../gitutils.gradle'
22
apply plugin: 'com.android.application'
33
apply plugin: 'kotlin-android'
44
apply plugin: 'kotlin-kapt'
5+
apply plugin: 'jacoco-android'
56
apply from: 'quality.gradle'
67

78
dependencies {

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ buildscript {
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:3.1.4'
11+
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.3'
12+
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
1113
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1214
}
1315
}

0 commit comments

Comments
 (0)