Skip to content

Commit 5a3853f

Browse files
karalabefjl
authored andcommitted
travis: only install the needed three android platforms (#3274)
1 parent 532d746 commit 5a3853f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ matrix:
7575

7676
- mkdir -p $ANDROID_HOME/platforms
7777
- mv -f $HOME/.android.platforms $ANDROID_HOME/platforms
78-
- echo "y" | android update sdk --no-ui --filter platform
78+
- echo "y" | android update sdk --no-ui --filter `android list sdk | grep "SDK Platform Android" | grep -E 'API 15|API 19|API 24' | awk '{print $1}' | cut -d '-' -f 1 | tr '\n' ','`
7979

8080
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
8181
- mv -f $ANDROID_HOME/platforms $HOME/.android.platforms

0 commit comments

Comments
 (0)