ModeratorElection/.gitlab-ci.yml

33 lines
574 B
YAML
Raw Normal View History

2024-07-05 06:35:48 +00:00
stages:
- test
2024-07-09 08:40:04 +00:00
- build
.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:38:56 +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
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:
echo "_____________end_________________"
2024-07-05 06:35:48 +00:00