Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Travis build.

  • Loading branch information...
commit 0895ff5e042bc1a7b9b7911ff2164458f60cd27c 1 parent 009120a
@JakeWharton JakeWharton authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 .travis.yml
View
9 .travis.yml
@@ -8,8 +8,11 @@ notifications:
email: false
before_install:
- - wget http://dl.google.com/android/android-sdk_r20.0.3-linux.tgz
- - tar -zxf android-sdk_r20.0.3-linux.tgz
+ - wget http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
+ - tar -zxf android-sdk_r21.0.1-linux.tgz
- export ANDROID_HOME=~/builds/square/tape/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
- - android update sdk --filter 1,3 --no-ui --force
+ - TOOLS=$(android list sdk --no-ui | grep "Android SDK Platform-tools" | cut -d"-" -f1)
+ - android update sdk --filter "$TOOLS" --no-ui --force
+ - SDK=$(android list sdk --no-ui | grep ", API 16," | cut -d"-" -f1)
+ - android update sdk --filter "$SDK" --no-ui --force
Please sign in to comment.
Something went wrong with that request. Please try again.