From ad6a442fbaa00b71bccad039a41f85c4afaf30d4 Mon Sep 17 00:00:00 2001 From: ITQ Date: Sat, 22 Nov 2025 07:50:05 +0300 Subject: [PATCH] ci: fix --- .gitlab-ci.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a24e447..a55e8d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/