Merge branch 'chore/23-improve-speed-of-gradle-ci-jobs' into 'main'
Enable gradle configuration cache with flag in ci and fix path issue See merge request cs108-fs26/Gruppe-13!55
This commit was merged in pull request #211.
This commit is contained in:
+7
-5
@@ -6,11 +6,13 @@ stages:
|
|||||||
|
|
||||||
# Reusable definitions
|
# Reusable definitions
|
||||||
.gradle-cache: &gradle-cache
|
.gradle-cache: &gradle-cache
|
||||||
|
variables:
|
||||||
|
GRADLE_USER_HOME: '$CI_PROJECT_DIR/.gradle-home'
|
||||||
cache:
|
cache:
|
||||||
key: '$CI_PROJECT_ID-gradle'
|
key: '$CI_PROJECT_ID-gradle'
|
||||||
paths:
|
paths:
|
||||||
- .gradle/
|
- .gradle/
|
||||||
- ~/.gradle/caches/
|
- .gradle-home/
|
||||||
|
|
||||||
.on-commit: &on-commit
|
.on-commit: &on-commit
|
||||||
rules:
|
rules:
|
||||||
@@ -30,7 +32,7 @@ checkstyle:
|
|||||||
stage: lint
|
stage: lint
|
||||||
image: gradle:9.3.1-jdk25
|
image: gradle:9.3.1-jdk25
|
||||||
script:
|
script:
|
||||||
- gradle checkstyleMain checkstyleTest
|
- gradle checkstyleMain checkstyleTest --configuration-cache --configuration-cache-problems=warn
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
@@ -47,7 +49,7 @@ checkstyle-mr:
|
|||||||
stage: lint
|
stage: lint
|
||||||
image: gradle:9.3.1-jdk25
|
image: gradle:9.3.1-jdk25
|
||||||
script:
|
script:
|
||||||
- gradle checkstyleMain checkstyleTest
|
- gradle checkstyleMain checkstyleTest --configuration-cache --configuration-cache-problems=warn
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
@@ -82,7 +84,7 @@ compile-check:
|
|||||||
stage: build
|
stage: build
|
||||||
image: gradle:9.3.1-jdk25
|
image: gradle:9.3.1-jdk25
|
||||||
script:
|
script:
|
||||||
- gradle compileTestJava
|
- gradle compileTestJava --configuration-cache --configuration-cache-problems=warn
|
||||||
needs: []
|
needs: []
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
@@ -95,7 +97,7 @@ test:
|
|||||||
stage: test
|
stage: test
|
||||||
image: gradle:9.3.1-jdk25
|
image: gradle:9.3.1-jdk25
|
||||||
script:
|
script:
|
||||||
- gradle test
|
- gradle test --configuration-cache --configuration-cache-problems=warn
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
reports:
|
reports:
|
||||||
|
|||||||
Reference in New Issue
Block a user