-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: convert reverse-dependency tests to tmt
Signed-off-by: Matej Focko <mfocko@redhat.com>
- Loading branch information
Showing
9 changed files
with
108 additions
and
14 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
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
summary: | ||
Unit & integration tests. | ||
Unit & integration tests | ||
|
||
discover+: | ||
filter: tier:1 | ||
|
||
prepare: | ||
how: ansible | ||
playbook: | ||
- files/packit-testing-farm-prepare.yaml | ||
execute: | ||
script: | ||
- make check | ||
# Enable packit-dev Copr repo to get the latest builds of packages | ||
- how: install | ||
copr: packit/packit-dev | ||
|
||
# Make sure the Copr repo has higher priority than TF Tag Repository | ||
- how: shell | ||
script: dnf -y config-manager --save --setopt="*:packit:packit-dev.priority=5" |
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,5 @@ | ||
discover: | ||
how: fmf | ||
|
||
execute: | ||
how: tmt |
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,32 @@ | ||
discover: | ||
how: fmf | ||
url: https://github.com/packit/packit | ||
filter: tier:0 | tier:1 | ||
|
||
prepare: | ||
- how: install | ||
copr: packit/packit-dev | ||
|
||
# make sure the Copr repo has higher priority than TF Tag Repository | ||
- how: shell | ||
script: dnf -y config-manager --save --setopt="*:packit:packit-dev.priority=5" | ||
|
||
adjust: | ||
- when: "how == integration" | ||
because: "provide latest python-ogr rpm when running locally" | ||
prepare+: | ||
- name: python3-ogr rpm | ||
how: install | ||
directory: noarch/ | ||
|
||
- when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9" | ||
because: "build and deepdiff are not in EPEL 9" | ||
prepare: | ||
- how: install | ||
package: python3-pip | ||
- how: shell | ||
script: pip3 install build deepdiff | ||
|
||
- when: "distro == rhel-8 or distro == centos-8 or distro == centos-stream-8" | ||
because: "packit doesn't support EL 8" | ||
enabled: false |
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
summary: | ||
Run linters on source code and packaging files | ||
|
||
prepare: | ||
- name: packages | ||
how: install | ||
package: | ||
- rpmlint | ||
execute: | ||
script: | ||
- rpmlint fedora/python-ogr.spec | ||
|
||
discover: | ||
how: shell | ||
tests: | ||
- name: rpmlint | ||
test: rpmlint fedora/python-ogr.spec |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
summary: | ||
Basic smoke test. | ||
execute: | ||
script: | ||
- python3 -c "import ogr" | ||
Basic smoke test | ||
|
||
discover+: | ||
filter: tier:0 |
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,26 @@ | ||
summary: | ||
Unit & integration tests | ||
|
||
require: | ||
- python3-flexmock | ||
- python3-pytest | ||
- python3-pytest-cov | ||
# not available on C9S, but is among the ‹pyproject.toml› deps | ||
# - python3-crypto | ||
- python3-deprecated | ||
- python3-GitPython | ||
- python3-pygithub | ||
- python3-gitlab | ||
- python3-pyyaml | ||
- python3-requests | ||
- python3-urllib3 | ||
- python3-requre | ||
|
||
component: | ||
- ogr | ||
tier: 1 | ||
tag: | ||
- basic | ||
|
||
test: pytest-3 -v --cov=ogr --cov-report=term-missing . | ||
duration: 30m |
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,11 @@ | ||
summary: | ||
Basic smoke test | ||
|
||
require: | ||
- python3-ogr | ||
|
||
tag: | ||
- smoke | ||
tier: 0 | ||
|
||
test: ./smoke.sh |
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,5 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
python3 -c "import ogr" |