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
|
image: eclipse-temurin:21-jdk
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
ANDROID_COMPILE_SDK: "36"
|
ANDROID_COMPILE_SDK: "36"
|
||||||
ANDROID_BUILD_TOOLS: "36.0.0"
|
ANDROID_BUILD_TOOLS: "36.0.0"
|
||||||
ANDROID_SDK_TOOLS: "11076708"
|
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:
|
before_script:
|
||||||
- apt-get update -qq && apt-get install -y wget tar unzip lib32stdc++6 lib32z1
|
- apt-get update -qq && apt-get install -y wget tar unzip lib32stdc++6 lib32z1
|
||||||
@@ -19,15 +32,6 @@ before_script:
|
|||||||
- chmod +x ./gradlew
|
- chmod +x ./gradlew
|
||||||
- echo "sdk.dir=${ANDROID_SDK_ROOT}" > local.properties
|
- echo "sdk.dir=${ANDROID_SDK_ROOT}" > local.properties
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- test
|
|
||||||
|
|
||||||
lintDebug:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
|
|
||||||
|
|
||||||
assembleDebug:
|
assembleDebug:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
@@ -40,3 +44,10 @@ debugTests:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./gradlew -Pci --console=plain :app:testDebug
|
- ./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