Skip to content

Commit c17a106

Browse files
authored
Travis test 4 (#25)
* Adds file * Updates Travis * Fixes travis * Changes wait for emulator command * Adds custom script * Explicitly use jdk8 * Explicity target java 7 * Compile with JDK 7 * More build tweaks * More build tweaks * More Travis tweaks * More Travis tweaks * More Travis tweaks * Tweak travis * Tweak travis * Tweak travis * More travis tweaks * More travis tweaks * More Travis tweaks * More travis tweaks * More travis tweaks
1 parent f440cbf commit c17a106

File tree

8 files changed

+43
-8
lines changed

8 files changed

+43
-8
lines changed

.travis.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
language: android
2-
env:
3-
matrix:
4-
- ANDROID_SDKS=android-19,sysimg-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
5-
before_install:
6-
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
7-
- emulator -avd test -no-skin -no-audio -no-window &
2+
android:
3+
components:
4+
- tools
5+
- platform-tools
6+
- build-tools-24.0.3
7+
- android-24
8+
- extra-android-m2repository
9+
- sys-img-armeabi-v7a-android-24
10+
jdk:
11+
- oraclejdk8
12+
before_cache:
13+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
14+
cache:
15+
directories:
16+
- $HOME/.gradle/caches/
17+
- $HOME/.gradle/wrapper/
818
before_script:
9-
- ./ci/wait_for_emulator
19+
- echo no | android create avd --force -n test -t android-24 --abi default/armeabi-v7a
20+
- emulator -avd test -no-audio -no-window &
21+
- android-wait-for-emulator
1022
- adb shell input keyevent 82 &
23+
script:
24+
- ./gradlew testAllModules

THIRDFILE

Whitespace-only changes.

android-sdk/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ android {
4545
testCoverageEnabled true
4646
}
4747
}
48+
49+
compileOptions {
50+
sourceCompatibility JavaVersion.VERSION_1_7
51+
targetCompatibility JavaVersion.VERSION_1_7
52+
}
4853
}
4954

5055
dependencies {

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ allprojects {
4646
ext {
4747
compile_sdk_version = 24
4848
build_tools_version = "24.0.3"
49-
min_sdk_version = 14
49+
min_sdk_version = 10
5050
target_sdk_version = 24
5151

5252
java_core_ver = "1.0.2"

event-handler/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ android {
4444
testCoverageEnabled true
4545
}
4646
}
47+
compileOptions {
48+
sourceCompatibility JavaVersion.VERSION_1_7
49+
targetCompatibility JavaVersion.VERSION_1_7
50+
}
4751
}
4852

4953
dependencies {

shared/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ android {
4444
testCoverageEnabled true
4545
}
4646
}
47+
compileOptions {
48+
sourceCompatibility JavaVersion.VERSION_1_7
49+
targetCompatibility JavaVersion.VERSION_1_7
50+
}
4751
}
4852

4953
dependencies {

test-app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ android {
2020
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2121
}
2222
}
23+
compileOptions {
24+
sourceCompatibility JavaVersion.VERSION_1_7
25+
targetCompatibility JavaVersion.VERSION_1_7
26+
}
2327
}
2428

2529
repositories {

user-experiment-record/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ android {
4444
testCoverageEnabled true
4545
}
4646
}
47+
compileOptions {
48+
sourceCompatibility JavaVersion.VERSION_1_7
49+
targetCompatibility JavaVersion.VERSION_1_7
50+
}
4751
}
4852

4953
dependencies {

0 commit comments

Comments
 (0)