2020-10-13 20:37:07 +00:00
|
|
|
language: java
|
|
|
|
jdk: openjdk8
|
|
|
|
install:
|
|
|
|
- mkdir $HOME/android-cmdline-tools
|
|
|
|
- curl https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip > $HOME/android-cmdline-tools/cmdline-tools.zip
|
|
|
|
- unzip -qq -n $HOME/android-cmdline-tools/cmdline-tools.zip -d $HOME/android-cmdline-tools
|
|
|
|
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platform-tools'
|
|
|
|
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'build-tools;29.0.3'
|
|
|
|
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platforms;android-30'
|
|
|
|
env:
|
|
|
|
- ANDROID_HOME=$HOME/android-sdk TERM=dumb JAVA_OPTS="-Xmx2048m"
|
|
|
|
before_script:
|
2016-09-25 00:54:25 +00:00
|
|
|
- echo sdk.dir $ANDROID_HOME > local.properties
|
2020-10-13 20:37:07 +00:00
|
|
|
script:
|
|
|
|
- ./gradlew --no-daemon build
|