work with img section in ci, test stage added

This commit is contained in:
Mirco 2024-07-09 13:55:39 +02:00
parent 6c0ef48a9d
commit bdcbc3ebdc

View file

@ -1,14 +1,24 @@
stages: stages:
- test
- build - build
# - test
build: img: &img
stage: build
image: openjdk:22-jdk-slim image: openjdk:22-jdk-slim
before_script: before_script:
- apt-get update && apt-get -qqy upgrade - apt-get update && apt-get -qqy upgrade
test:
<<: *img
stage: test
script:
- ./gradlew test
build:
<<: *img
stage: build
script: script:
- ./gradlew clean build -Pvaadin.productionMode - ./gradlew clean build -Pvaadin.productionMode
after_script: after_script:
echo "_____________end_________________" echo "_____________end_________________"