You've already forked RekomenciMobile
ci: fix
This commit is contained in:
+20
-9
@@ -1,9 +1,22 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
image: eclipse-temurin:21-jdk
|
||||
|
||||
variables:
|
||||
ANDROID_COMPILE_SDK: "36"
|
||||
ANDROID_BUILD_TOOLS: "36.0.0"
|
||||
ANDROID_SDK_TOOLS: "11076708"
|
||||
GRADLE_USER_HOME: "$CI_PROJECT_DIR/.gradle"
|
||||
|
||||
cache:
|
||||
key: "${CI_JOB_NAME}"
|
||||
paths:
|
||||
- .gradle/caches/
|
||||
- .gradle/wrapper/
|
||||
- android-home/
|
||||
policy: pull-push
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq && apt-get install -y wget tar unzip lib32stdc++6 lib32z1
|
||||
@@ -19,15 +32,6 @@ before_script:
|
||||
- chmod +x ./gradlew
|
||||
- echo "sdk.dir=${ANDROID_SDK_ROOT}" > local.properties
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
lintDebug:
|
||||
stage: build
|
||||
script:
|
||||
- ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
|
||||
|
||||
assembleDebug:
|
||||
stage: build
|
||||
script:
|
||||
@@ -40,3 +44,10 @@ debugTests:
|
||||
stage: test
|
||||
script:
|
||||
- ./gradlew -Pci --console=plain :app:testDebug
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 7 days
|
||||
paths:
|
||||
- app/build/reports/tests/testDebug/
|
||||
- app/build/test-results/testDebug/
|
||||
- app/build/outputs/unit_test_code_coverage/debugUnitTest/
|
||||
|
||||
Reference in New Issue
Block a user