public-transport-enabler/.gitlab-ci.yml
Andreas Schildbach 1fa69af5df .gitlab-ci.yml: fix OpenJDK 21 not found on Trixie
Rather than testing with OpenJDK 21 on Debian Trixie (which is an
unstable target), test with the default JDK.
2024-06-25 22:18:05 +02:00

35 lines
912 B
YAML

before_script:
- apt-get update
after_script:
- gradle --version
bullseye-jdk11:
image: debian:bullseye-slim
script:
- apt-get -y install openjdk-11-jdk-headless gradle
- gradle build --stacktrace
artifacts:
name: public-transport-enabler-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- build/libs/*.jar
bookworm-jdk17:
image: debian:bookworm-slim
script:
- apt-get -y install openjdk-17-jdk-headless gradle
- gradle build --stacktrace
artifacts:
name: public-transport-enabler-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- build/libs/*.jar
default-jdk:
image: debian:testing-slim
script:
- apt-get -y install default-jdk-headless gradle
- gradle build --stacktrace
artifacts:
name: public-transport-enabler-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- build/libs/*.jar