-
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.
Test and verify with tmt and TF (#301)
Test and verify with tmt and TF Reviewed-by: Maja Massarini
- Loading branch information
Showing
13 changed files
with
163 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
summary: | ||
Unit & integration tests | ||
|
||
discover+: | ||
filter: tier:1 | ||
|
||
prepare: | ||
# 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: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo |
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,24 @@ | ||
discover: | ||
how: fmf | ||
url: https://github.com/packit/ogr | ||
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: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo | ||
|
||
adjust: | ||
- when: "how == integration" | ||
because: "provide latest python-requre rpm when running locally" | ||
prepare+: | ||
- name: python3-requre rpm | ||
how: install | ||
directory: noarch/ | ||
|
||
- when: "distro == rhel-8 or distro == centos-8 or distro == centos-stream-8" | ||
because: "ogr 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 |
---|---|---|
@@ -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: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo | ||
|
||
adjust: | ||
- when: "how == integration" | ||
because: "provide latest python-requre rpm when running locally" | ||
prepare+: | ||
- name: python3-requre 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 < 8.0.0' # version 8.0.0 depends on numpy, avoid it | ||
|
||
- 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
summary: | ||
Run linters on source code and packaging files | ||
|
||
prepare: | ||
- name: packages | ||
how: install | ||
package: | ||
- rpmlint | ||
|
||
discover: | ||
how: shell | ||
tests: | ||
- name: rpmlint | ||
test: rpmlint fedora/python-requre.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
summary: | ||
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,27 @@ | ||
summary: | ||
Unit & integration tests | ||
|
||
require: | ||
- python3-flexmock | ||
- python3-pytest | ||
- python3-pytest-cov | ||
|
||
- python3-pyyaml | ||
|
||
- python3-httpx | ||
- python3-requests | ||
- python3-urllib3 | ||
|
||
- python3-GitPython | ||
- python3-ogr | ||
|
||
component: | ||
- requre | ||
tier: 1 | ||
tag: | ||
- basic | ||
|
||
test: pytest-3 -v --cov=requre --cov-report=term-missing $TEST_TARGET | ||
duration: 30m | ||
environment: | ||
TEST_TARGET: . |
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-requre | ||
|
||
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 requre" |