diff options
author | Allan Wang <me@allanwang.ca> | 2021-08-29 20:23:49 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-08-29 20:23:49 -0700 |
commit | 4f3afbf314077538a18b295c42b1d44fc06d09dd (patch) | |
tree | e2ced1021301da34ec76b62b85730928bb8c8809 | |
parent | 87dc253bfd82f7a4a7bc74134d999eb46b80409e (diff) | |
download | kau-4f3afbf314077538a18b295c42b1d44fc06d09dd.tar.gz kau-4f3afbf314077538a18b295c42b1d44fc06d09dd.tar.bz2 kau-4f3afbf314077538a18b295c42b1d44fc06d09dd.zip |
Get command line tools myself
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 569e119..b42ec79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,13 @@ language: android jdk: -- openjdk8 - openjdk11 env: global: - ANDROID_API=30 - EMULATOR_API=19 - ANDROID_BUILD_TOOLS=30.0.2 + - ANDROID_COMMAND_LINE_TOOLS=7583922 + - ANDROID_HOME=~/android-sdk git: depth: 500 android: @@ -43,8 +44,13 @@ cache: - "$HOME/.gradle/wrapper/" - "$HOME/.android/build-cache" before_install: -- jdk_switcher use openjdk11 -- yes | sdkmanager "platforms;android-$ANDROID_API" +# Get Java 11 compatible tools: https://stackoverflow.com/a/68534598/4407321 +- touch $HOME/.android/repositories.cfg +- wget "https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_COMMAND_LINE_TOOLS}_latest.zip" -O commandlinetools.zip +- unzip commandlinetools.zip -d $ANDROID_HOME/ +- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${ANDROID_API}" --sdk_root=$ANDROID_HOME +- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" --sdk_root=$ANDROID_HOME +# Get KAU content - openssl aes-256-cbc -K $encrypted_12e8842891a3_key -iv $encrypted_12e8842891a3_iv -in files/kau.tar.enc -out kau.tar -d - tar xvf kau.tar |