Skip to content

Commit d5d11a7

Browse files
SUPERCILEXcketcham
authored andcommitted
Fix Travis build
GIT_ORIGIN_REV_ID=889cdeb1553d096b1bbd7280ca248c24aa7a8f48 PiperOrigin-RevId: 203828446
1 parent ad1d5f2 commit d5d11a7

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.travis.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ sudo: required
77
dist: trusty
88

99
env:
10-
global:
11-
# Notice global environment variables are available during the install phase for android >
12-
# components. These are the only variables that can be used in that section
13-
- SDK_API=P
14-
- BUILD_TOOLS_VERSION=26.0.2
1510
matrix:
1611
# Notice matrix environment variables are not available during the install phase for android >
1712
# components.
@@ -33,16 +28,14 @@ cache:
3328

3429
android:
3530
components:
36-
- tools # to get the new `repository-11.xml`
37-
- platform-tools #latest
38-
- tools # to install Android SDK tools 25+, latest, cannot get more granular control than this
39-
# See https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943 for more
40-
# details.
41-
- build-tools-$BUILD_TOOLS_VERSION
42-
- android-$SDK_API
43-
44-
licenses:
45-
- 'android-sdk-license-.+'
31+
# https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
32+
- tools
33+
- tools
34+
35+
before_install:
36+
- mkdir "$ANDROID_HOME/licenses" || true
37+
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
38+
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd\n504667f4c0de7af1a06de9f4b1727b84351f2910" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
4639

4740
before_script:
4841
- ./travis_before_script.sh

0 commit comments

Comments
 (0)