ModeratorElection/.gitlab-ci.yml

48 lines
821 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
2024-07-11 19:54:15 +00:00
# - image
# - publish
2024-07-09 08:40:04 +00:00
.img: &img
2024-07-09 11:31:16 +00:00
image: openjdk:22-jdk-slim
2024-07-09 12:38:56 +00:00
cache:
- key: ${CI_COMMIT_REF_SLUG}
- paths:
2024-07-11 19:54:15 +00:00
- /var/cache/apt
2024-07-09 12:38:56 +00:00
- .gradle/wrapper
- .gradle/caches
2024-07-11 19:54:15 +00:00
before_script:
- echo "___________________START_before_script________________________"
- echo ${CI_COMMIT_REF_SLUG}
- apt-get update && apt-get -qqy upgrade
2024-07-09 12:38:56 +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
2024-07-11 19:54:15 +00:00
artifacts:
name: "ModeratorElection.jar"
paths:
- build/libs/
exclude:
- build/libs/ModeratorElection-plain.jar
2024-07-09 11:31:16 +00:00
after_script:
2024-07-09 12:43:53 +00:00
- echo "_____________end_________________"
2024-07-05 06:35:48 +00:00
2024-07-11 19:54:15 +00:00
image:
stage: image
script:
-
publish:
stage: publish