forked from meissa/ModeratorElection
46 lines
820 B
YAML
46 lines
820 B
YAML
stages:
|
|
- test
|
|
- build
|
|
# - image
|
|
# - publish
|
|
|
|
.img: &img
|
|
image: openjdk:22-jdk-slim
|
|
cache:
|
|
- key: ${CI_COMMIT_REF_SLUG}
|
|
- paths:
|
|
- /var/cache/apt
|
|
- .gradle/wrapper
|
|
- .gradle/caches
|
|
before_script:
|
|
- echo "___________________START_before_script________________________"
|
|
- echo ${CI_COMMIT_REF_SLUG}
|
|
- apt-get update && apt-get -qqy upgrade
|
|
|
|
test:
|
|
<<: *img
|
|
stage: test
|
|
script:
|
|
- ./gradlew test
|
|
|
|
build:
|
|
<<: *img
|
|
stage: build
|
|
script:
|
|
- ./gradlew clean build -Pvaadin.productionMode
|
|
artifacts:
|
|
name: "ModeratorElection.jar"
|
|
paths:
|
|
- build/libs/
|
|
exclude:
|
|
- build/libs/ModeratorElection-plain.jar
|
|
after_script:
|
|
- echo "_____________end_________________"
|
|
|
|
#image:
|
|
# stage: image
|
|
# script:
|
|
|
|
#publish:
|
|
# stage: publish
|
|
|