-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add upstream CI for test PR's to main branch
Packit CI, can run test suite against incoming code changes to repository. CI can catch mistakes and failures in new code.
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
jobs: | ||
- job: tests | ||
trigger: pull_request | ||
branch: main | ||
targets: | ||
- fedora-rawhide | ||
skip_build: true | ||
tf_extra_params: | ||
environments: | ||
- tmt: | ||
context: | ||
target_PR_branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
summary: common test plan for CI | ||
|
||
|
||
prepare: | ||
- how: shell | ||
script: | ||
- systemctl disable --now dnf-makecache.service || true | ||
- systemctl disable --now dnf-makecache.timer || true | ||
- dnf makecache | ||
|
||
environment: | ||
OPERATOR_NAME: "keylime" | ||
OPERATOR_NAMESPACE: "attestation-operator" | ||
|
||
discover: | ||
- name: Configure_test_system | ||
how: fmf | ||
url: https://github.com/RedHat-SP-Security/common-cloud-orchestration | ||
ref: main | ||
test: | ||
- /Setup/setup_local_cluster | ||
- name: Run_tests | ||
how: fmf | ||
url: https://github.com/RedHat-SP-Security/attestation-operator-tests | ||
ref: main | ||
test: | ||
- /Setup/install_operator | ||
- /Sanity | ||
- /Setup/clean_cluster | ||
|
||
adjust: | ||
- when: distro == rhel-9 or distro == centos-stream-9 | ||
prepare+: | ||
- how: shell | ||
script: | ||
- dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm | ||
|
||
|
||
execute: | ||
how: tmt | ||
|