File tree 7 files changed +53
-9
lines changed
7 files changed +53
-9
lines changed Original file line number Diff line number Diff line change 1
1
language : android
2
2
3
+ # Use the Travis Container-Based Infrastructure
4
+ sudo : false
5
+
6
+ jdk :
7
+ - oraclejdk8
8
+
9
+ env :
10
+ global :
11
+ - ANDROID_BUILD_TOOLS_VERSION=25.0.2
12
+ - ADB_INSTALL_TIMEOUT=20 # install timeout in minutes (2 minutes by default)
13
+ matrix :
14
+ - ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
15
+
3
16
android :
4
17
components :
5
- # Update Android SDK Tools
6
- - tools
7
-
8
- - build-tools-23.0.3
9
- - android-24
18
+ - tools # to get the new `repository-11.xml`
19
+ - tools # to install new Android SDK tools
20
+ - platform-tools
21
+ - build-tools-$ANDROID_BUILD_TOOLS_VERSION
22
+ - $ANDROID_TARGET
23
+ - android-25
10
24
11
25
# Support library
12
26
- extra-android-support
13
27
- extra-android-m2repository
14
28
29
+ # System images
30
+ - sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
31
+
32
+ before_script :
33
+ - chmod +x ./gradlew
34
+ # Emulator Management: Create, Start and Wait
35
+ - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
36
+ - emulator -avd test -no-audio -no-window &
37
+ - android-wait-for-emulator
38
+
15
39
script :
16
- - chmod +x ./gradlew
40
+ - ./gradlew assemble
41
+ - ./gradlew build check # Local unit tests
42
+ - ./gradlew build connectedCheck # Instrumented unit tests
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ android {
32
32
applicationIdSuffix " .noop"
33
33
}
34
34
}
35
+
36
+ lintOptions {
37
+ abortOnError false
38
+ }
35
39
}
36
40
37
41
dependencies {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ buildscript {
3
3
gitTag = ' git describe --tags' . execute([], project. rootDir). text. trim()
4
4
gitCommitCount = Integer . parseInt(' git rev-list --count HEAD' . execute([], project. rootDir). text. trim())
5
5
6
- buildToolsVersion = ' 25.0.1 '
6
+ buildToolsVersion = ' 25.0.2 '
7
7
8
8
compileSdkVersion = 25
9
9
targetSdkVersion = 25
@@ -14,9 +14,8 @@ buildscript {
14
14
realmVersion = ' 2.3.1'
15
15
16
16
// dependencies
17
- supportLibVersion = ' 25.1.1'
18
17
timberVersion = ' 4.3.0'
19
- supportLibVersion = ' 25.1.1 '
18
+ supportLibVersion = ' 25.2.0 '
20
19
}
21
20
22
21
repositories {
Original file line number Diff line number Diff line change
1
+ org.gradle.jvmargs =-Xmx2048M
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ android {
12
12
versionCode project. gitCommitCount
13
13
versionName project. gitTag
14
14
}
15
+
16
+ lintOptions {
17
+ abortOnError false
18
+ }
15
19
}
16
20
17
21
dependencies {
Original file line number Diff line number Diff line change @@ -13,6 +13,16 @@ android {
13
13
versionName project. gitTag
14
14
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
15
15
}
16
+
17
+ lintOptions {
18
+ abortOnError false
19
+ }
20
+
21
+ // This enables long timeouts required on slow environments, e.g. Travis
22
+ adbOptions {
23
+ timeOutInMs 10 * 60 * 1000 // 10 minutes
24
+ installOptions " -d" ," -t"
25
+ }
16
26
}
17
27
18
28
dependencies {
You can’t perform that action at this time.
0 commit comments