2022-01-24 12:44:33 +00:00
|
|
|
#
|
|
|
|
# Build/PR gating tests for *LLVM 13*
|
|
|
|
#
|
2022-06-23 18:22:25 +00:00
|
|
|
# Imports and runs tests provided by Fedora LLVM git for the matching LLVM version.
|
2022-01-24 12:44:33 +00:00
|
|
|
#
|
2022-06-23 18:22:25 +00:00
|
|
|
# NOTE: *always* keep this file in sync with upstream, i.e. Fedora. Since we cannot "discover" a plan,
|
|
|
|
# we must duplicate at least some part of upstream plan setup, like `adjust` or `provision`. Not necessarily
|
|
|
|
# all steps, btu if we do need some of them here, let's focus on making changes in upstream first, to preserve
|
|
|
|
# one source of truth. Once TMT learns to include whole plans, we could drop the copied content from here.
|
2022-01-24 12:44:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
summary: LLVM tests for build/PR gating
|
2022-06-23 18:22:25 +00:00
|
|
|
|
2022-01-24 12:44:33 +00:00
|
|
|
adjust:
|
|
|
|
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
|
|
|
|
when: >-
|
|
|
|
trigger is defined
|
|
|
|
and trigger != commit
|
|
|
|
and trigger != build
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
# Unfortunatelly, TMT does not support more declarative approach, we need to run commands on our own.
|
2022-06-23 18:22:25 +00:00
|
|
|
- because: "On RHEL, CRB must be enabled to provide rarer packages"
|
|
|
|
when: >-
|
|
|
|
distro == rhel-9
|
|
|
|
or distro == rhel-8
|
2022-01-24 12:44:33 +00:00
|
|
|
prepare+:
|
|
|
|
- name: Enable CRB
|
|
|
|
how: shell
|
2022-06-23 18:22:25 +00:00
|
|
|
script: dnf config-manager --set-enabled rhel-CRB
|
|
|
|
- because: "On RHEL, CRB must be enabled to provide rarer packages"
|
2022-04-13 06:46:59 +00:00
|
|
|
when: >-
|
|
|
|
distro == centos
|
|
|
|
prepare+:
|
|
|
|
- name: Enable CRB
|
|
|
|
how: shell
|
2022-06-23 18:22:25 +00:00
|
|
|
script: dnf config-manager --set-enabled crb
|
2022-01-24 12:44:33 +00:00
|
|
|
|
|
|
|
discover:
|
2022-06-23 18:22:25 +00:00
|
|
|
- name: "Upstream LLVM tests for build/PR gating"
|
2022-01-24 12:44:33 +00:00
|
|
|
how: fmf
|
2022-06-23 18:22:25 +00:00
|
|
|
url: https://src.fedoraproject.org/rpms/llvm.git
|
|
|
|
ref: rawhide
|
|
|
|
|
2022-01-24 12:44:33 +00:00
|
|
|
execute:
|
2022-06-23 18:22:25 +00:00
|
|
|
how: tmt
|
|
|
|
|
2022-01-24 12:44:33 +00:00
|
|
|
provision:
|
|
|
|
hardware:
|
|
|
|
memory: ">= 4 GiB"
|