2024-07-05 06:35:48 +00:00
|
|
|
stages:
|
2024-07-09 11:55:39 +00:00
|
|
|
- test
|
2024-07-09 08:40:04 +00:00
|
|
|
- build
|
|
|
|
|
2024-07-09 11:57:21 +00:00
|
|
|
.img: &img
|
2024-07-09 11:31:16 +00:00
|
|
|
image: openjdk:22-jdk-slim
|
2024-07-09 08:40:04 +00:00
|
|
|
before_script:
|
2024-07-09 12:43:53 +00:00
|
|
|
- echo "___________________START_before_script________________________"
|
|
|
|
- echo ${CI_COMMIT_REF_SLUG}
|
2024-07-09 11:31:16 +00:00
|
|
|
- apt-get update && apt-get -qqy upgrade
|
2024-07-09 12:38:56 +00:00
|
|
|
cache:
|
|
|
|
- key: ${CI_COMMIT_REF_SLUG}
|
|
|
|
- paths:
|
|
|
|
- .gradle/wrapper
|
|
|
|
- .gradle/caches
|
|
|
|
|
2024-07-09 11:55:39 +00:00
|
|
|
test:
|
|
|
|
<<: *img
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./gradlew test
|
|
|
|
|
|
|
|
build:
|
|
|
|
<<: *img
|
|
|
|
stage: build
|
2024-07-05 06:35:48 +00:00
|
|
|
script:
|
2024-07-09 11:31:16 +00:00
|
|
|
- ./gradlew clean build -Pvaadin.productionMode
|
|
|
|
after_script:
|
2024-07-09 12:43:53 +00:00
|
|
|
- echo "_____________end_________________"
|
2024-07-05 06:35:48 +00:00
|
|
|
|
2024-07-09 11:55:39 +00:00
|
|
|
|