ant/plans/matrix.fmf
2024-12-12 06:41:23 +01:00

143 lines
3.0 KiB
Plaintext

discover:
how: fmf
url: https://src.fedoraproject.org/tests/ant
execute:
how: tmt
/jdk8:
environment:
OPENJDK_VERSION: 1.8.0
prepare:
- how: install
exclude:
- ant-openjdk11
- ant-openjdk17
- ant-openjdk21
- ant-unbound
/full:
summary: Ant matrix tests - OpenJDK 8 full
discover+:
filter: tag:jdk8 & tier:0,1
/headless:
summary: Ant matrix tests - OpenJDK 8 headless
discover+:
filter: tag:jre8 & tier:0,1
environment+:
OPENJDK_HEADLESS: "true"
prepare+:
- how: shell
script: |
dnf -y remove java-*-openjdk
/jdk11:
environment:
OPENJDK_VERSION: 11
prepare:
- how: install
exclude:
- ant-openjdk8
- ant-openjdk17
- ant-openjdk21
- ant-unbound
/full:
summary: Ant matrix tests - OpenJDK 11 full
discover+:
filter: tag:jdk11 & tier:0,1
/headless:
summary: Ant matrix tests - OpenJDK 11 headless
discover+:
filter: tag:jre11 & tier:0,1
environment+:
OPENJDK_HEADLESS: "true"
prepare+:
- how: shell
script: |
dnf -y remove java-*-openjdk
/jdk17:
environment:
OPENJDK_VERSION: 17
prepare:
- how: install
exclude:
- ant-openjdk8
- ant-openjdk11
- ant-openjdk21
- ant-unbound
/full:
summary: Ant matrix tests - OpenJDK 17 full
discover+:
filter: tag:jdk17 & tier:0,1
/headless:
summary: Ant matrix tests - OpenJDK 17 headless
discover+:
filter: tag:jre17 & tier:0,1
environment+:
OPENJDK_HEADLESS: "true"
prepare+:
- how: shell
script: |
dnf -y remove java-*-openjdk
/jdk21:
environment:
OPENJDK_VERSION: 21
prepare:
- how: install
exclude:
- ant-openjdk8
- ant-openjdk11
- ant-openjdk17
- ant-unbound
/full:
summary: Ant matrix tests - OpenJDK 21 full
discover+:
filter: tag:jdk21 & tier:0,1
/headless:
summary: Ant matrix tests - OpenJDK 21 headless
discover+:
filter: tag:jre21 & tier:0,1
environment+:
OPENJDK_HEADLESS: "true"
prepare+:
- how: shell
script: |
dnf -y remove java-*-openjdk
/unbound:
prepare:
- how: install
exclude:
- ant-openjdk8
- ant-openjdk11
- ant-openjdk17
- ant-openjdk21
# These subpackages pull in packaged Java through their dependencies
- ant-antlr
- ant-apache-regexp
- ant-apache-resolver
- ant-apache-xalan2
- ant-junit5
/jlink:
summary: Ant matrix tests - unbound jlink-based Java
discover+:
filter: tag:unbound & tier:0,1
prepare+:
- how: shell
script: |
test -d /opt/java && test -x /usr/local/bin/java && exit 0
dnf -y install java-21-openjdk-jmods
jlink --add-modules java.base,java.xml --output /opt/java
ln -s /opt/java/bin/java /usr/local/bin/java
dnf -y remove java-21-openjdk-jmods