@@ -4,18 +4,12 @@ dist: trusty
4
4
jdk : oraclejdk8
5
5
6
6
env :
7
- global :
8
- - ANDROID_API=29 # api is same as gradle file
9
- - ANDROID_BUILD_TOOLS=29.0.3 # should match gradle
10
- - ADB_INSTALL_TIMEOUT=5 # minutes
11
- - ANDROID_TAG=google_apis
12
- - ANDROID_ABI=armeabi-v7a
13
- jobs :
14
7
# API 26+ supports "x86" (ANDROID_ABI=x86) emulators only, which are not supported yet in travis VMs
15
8
# so API 24 is the highest level we can run with emulator for now
16
- - EMULATOR_API=19 # API-16 build fails in travis
17
- - EMULATOR_API=21
18
- - EMULATOR_API=24
9
+ # API-16 build fails in travis
10
+ - EMULATOR_API=19 ANDROID_ABI=armeabi-v7a ANDROID_API=29 ANDROID_BUILD_TOOLS=29.0.3
11
+ - EMULATOR_API=21 ANDROID_ABI=armeabi-v7a ANDROID_API=29 ANDROID_BUILD_TOOLS=29.0.3
12
+ - EMULATOR_API=24 ANDROID_ABI=armeabi-v7a ANDROID_API=29 ANDROID_BUILD_TOOLS=29.0.3
19
13
20
14
android :
21
15
components :
@@ -53,13 +47,17 @@ script:
53
47
54
48
# Integration tests need to run first to reset the PR build status to pending
55
49
stages :
56
- - ' Source Clear'
57
- - ' Lint markdown files'
58
- - ' Integration tests'
59
- - ' Test'
60
- - ' Publish'
61
- - ' Snapshot'
62
-
50
+ - name : ' Source Clear'
51
+ if : type = cron
52
+ - name : ' Lint markdown files'
53
+ - name : ' Integration tests'
54
+ - name : ' Test'
55
+ if : env(SNAPSHOT) IS NOT present
56
+ - name : ' Publish'
57
+ if : tag IS present
58
+ - name : ' Snapshot'
59
+ if : env(SNAPSHOT) = true and type = api
60
+
63
61
jobs :
64
62
include :
65
63
- stage : ' Lint markdown files'
89
87
after_success : travis_terminate 0
90
88
91
89
- stage : ' Source Clear'
92
- if : type = cron
93
90
addons :
94
91
srcclr : true
95
92
before_install : skip
@@ -100,14 +97,17 @@ jobs:
100
97
after_success : skip
101
98
102
99
- stage : ' Publish'
103
- if : tag IS present
104
100
script :
105
101
- ./gradlew ship
106
102
after_script : skip
107
103
after_success : skip
108
104
109
105
- stage : ' Snapshot'
110
- if : env(SNAPSHOT) = true and type = api
106
+ before_install :
107
+ # required to accept Android licenses before install
108
+ - yes | sdkmanager "platforms;android-29"
109
+ before_script : skip
111
110
script :
112
111
- TRAVIS_TAG=BB-SNAPSHOT ./gradlew ship
112
+ after_script : skip
113
113
after_success : skip
0 commit comments