Skip to content

Commit

Permalink
Require copr build job definition for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarcziova committed May 4, 2023
1 parent 0607fb9 commit 3fc5ac2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
43 changes: 41 additions & 2 deletions content/docs/Configuration/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ jobs:

{{< details title="Running tests in Testing Farm" >}}
```yaml
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- job: tests
trigger: pull_request
targets:
Expand All @@ -159,17 +164,24 @@ jobs:
Please, let us know if you want to use the internal Testing Farm;
we have to enable it for you.
```yaml
- job: copr_build
trigger: pull_request
targets:
- epel-8-x86_64
- job: tests
trigger: pull_request
targets:
centos-stream-9-x86_64:
distros: [RHEL-9.3.0-Nightly]
epel-8-x86_64:
distros: [RHEL-8.8.0-Nightly]
use_internal_tf: True
```
{{< /details >}}

{{< details title="Running only tests (without builds)">}}
```yaml
- job: tests
trigger: pull_request
targets:
- fedora-all
skip_build: True
Expand All @@ -178,7 +190,14 @@ we have to enable it for you.

{{< details title="Defining mapping between build and test targets" >}}
```yaml
- job: copr_build
trigger: pull_request
targets:
- epel-7-x86_64
- epel-8-x86_64
- job: tests
trigger: pull_request
targets:
epel-7-x86_64:
distros: [centos-7, oraclelinux-7]
Expand All @@ -189,6 +208,11 @@ we have to enable it for you.

{{< details title="Specifying where the FMF metadata are placed (other than default)" >}}
```yaml
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- job: tests
trigger: pull_request
targets:
Expand All @@ -201,6 +225,11 @@ we have to enable it for you.
{{< details title="Running more types of tests" >}}
```yaml
jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- job: tests
trigger: pull_request
targets:
Expand All @@ -217,6 +246,11 @@ jobs:

{{< details title="Providing custom tmt context" >}}
```yaml
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- job: tests
trigger: pull_request
targets:
Expand All @@ -236,6 +270,11 @@ of the project. If not set, cloud costs are reported against
`Packit Service`. The `BusinessUnit` key name is required, please
do not change it.
```yaml
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- job: tests
trigger: pull_request
targets:
Expand Down
7 changes: 6 additions & 1 deletion content/docs/testing-farm.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ Test execution is managed by [tmt][tmt] tool.

## Enable Testing

In order to enable test execution simply include `tests` jobs in the `.packit.yaml` configuration:
In order to enable test execution simply include `tests` and required `copr_build` jobs in the `.packit.yaml` configuration:

```yaml
jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-all

- job: tests
trigger: pull_request
targets:
Expand Down

0 comments on commit 3fc5ac2

Please sign in to comment.