@@ -4,18 +4,12 @@ dist: trusty
44jdk : oraclejdk8
55
66env :
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 :
147 # API 26+ supports "x86" (ANDROID_ABI=x86) emulators only, which are not supported yet in travis VMs
158 # 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
1913
2014android :
2115 components :
@@ -53,13 +47,17 @@ script:
5347
5448# Integration tests need to run first to reset the PR build status to pending
5549stages :
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+
6361jobs :
6462 include :
6563 - stage : ' Lint markdown files'
8987 after_success : travis_terminate 0
9088
9189 - stage : ' Source Clear'
92- if : type = cron
9390 addons :
9491 srcclr : true
9592 before_install : skip
@@ -100,14 +97,17 @@ jobs:
10097 after_success : skip
10198
10299 - stage : ' Publish'
103- if : tag IS present
104100 script :
105101 - ./gradlew ship
106102 after_script : skip
107103 after_success : skip
108104
109105 - 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
111110 script :
112111 - TRAVIS_TAG=BB-SNAPSHOT ./gradlew ship
112+ after_script : skip
113113 after_success : skip
0 commit comments