mirror of
https://framagit.org/tom79/nitterizeme
synced 2024-12-22 21:48:08 +01:00
fix CI
This commit is contained in:
parent
fc9b49723c
commit
bab3fc1a70
@ -1,23 +1,9 @@
|
|||||||
image: java:8-jdk
|
image: hatsoftwares/mastalab-ci:latest
|
||||||
|
|
||||||
variables:
|
|
||||||
ANDROID_COMPILE_SDK: "30"
|
|
||||||
ANDROID_BUILD_TOOLS: "30.0.3"
|
|
||||||
ANDROID_SDK_TOOLS: "4333796"
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip
|
- export ANDROID_HOME=/opt/android-sdk-linux
|
||||||
- unzip -d android-sdk-linux android-sdk.zip
|
- export PATH=$PATH:/opt/android-sdk-linux/platform-tools/
|
||||||
- echo y | android-sdk-linux/tools/bin/sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}" >/dev/null
|
- chmod +x gradlew
|
||||||
- echo y | android-sdk-linux/tools/bin/sdkmanager "platform-tools" >/dev/null
|
|
||||||
- echo y | android-sdk-linux/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" >/dev/null
|
|
||||||
- export ANDROID_HOME=$PWD/android-sdk-linux
|
|
||||||
- export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
|
|
||||||
- chmod +x ./gradlew
|
|
||||||
# temporarily disable checking for EPIPE error and use yes to accept all licenses
|
|
||||||
- set +o pipefail
|
|
||||||
- yes | android-sdk-linux/tools/bin/sdkmanager --licenses
|
|
||||||
- set -o pipefail
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build-and-test
|
- build-and-test
|
||||||
|
@ -7,7 +7,7 @@ buildscript {
|
|||||||
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.0.3'
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
Loading…
Reference in New Issue
Block a user