2024-12-09 13:36:04 +00:00
|
|
|
# https://docs.gitlab.com/ee/ci/testing/unit_test_report_examples.html#gradle
|
|
|
|
|
|
|
|
java:
|
|
|
|
image: alpine:latest
|
|
|
|
stage: test
|
|
|
|
script:
|
2024-12-10 10:38:45 +01:00
|
|
|
- apk --no-cache add openjdk23 gradle --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing/
|
|
|
|
- gradle test --no-daemon
|
2024-12-09 13:36:04 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: app/build/test-results/test/**/TEST-*.xml
|
2025-01-29 17:03:04 +01:00
|
|
|
expire_in: 6 month
|
|
|
|
|
|
|
|
jmh:
|
|
|
|
image: alpine:latest
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- apk --no-cache add openjdk23 gradle --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing/
|
|
|
|
- gradle jmh --no-daemon
|
|
|
|
# https://docs.gitlab.com/ee/ci/jobs/job_artifacts.html
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- app/build/reports/jmh/*
|
|
|
|
expire_in: 6 month
|