Last active
June 28, 2020 17:46
-
-
Save BoD/64f03906acfa5346548d7d7b2c7a0b9a to your computer and use it in GitHub Desktop.
Travis build file for Android: 'install' block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install: | |
# Download and unzip the Android command line tools (if not already there thanks to the cache mechanism) | |
# Latest version of this file available here: https://developer.android.com/studio/#command-tools | |
- if test ! -e $HOME/android-cmdline-tools/cmdline-tools.zip ; then curl https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip > $HOME/android-cmdline-tools/cmdline-tools.zip ; fi | |
- unzip -qq -n $HOME/android-cmdline-tools/cmdline-tools.zip -d $HOME/android-cmdline-tools | |
# Install or update Android SDK components (will not do anything if already up to date thanks to the cache mechanism) | |
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platform-tools' > /dev/null | |
# Latest version of build-tools available here: https://developer.android.com/studio/releases/build-tools.html | |
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'build-tools;29.0.3' > /dev/null | |
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platforms;android-29' > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment