ModeratorElection/.gitlab-ci.yml
2024-07-09 14:38:56 +02:00

32 lines
574 B
YAML

stages:
- test
- build
.img: &img
image: openjdk:22-jdk-slim
before_script:
- echo "___________________START :: before_script_________________________"
- echo "${CI_COMMIT_REF_SLUG}"
- apt-get update && apt-get -qqy upgrade
cache:
- key: ${CI_COMMIT_REF_SLUG}
- paths:
- .gradle/wrapper
- .gradle/caches
test:
<<: *img
stage: test
script:
- ./gradlew test
build:
<<: *img
stage: build
script:
- ./gradlew clean build -Pvaadin.productionMode
after_script:
echo "_____________end_________________"