forked from scikit-build/scikit-build
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add rpm lint and smoke-test (scikit-build#938)
* Refactor spec file according to downstream suggestions https://src.fedoraproject.org/rpms/python-scikit-build/pull-request/2 Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> * Prepare for tmt - tmt cannot navigate hidden folders- added main.fmf files so that users can edit tmt environments to their local setup (Can remove this when system/user config is supported) - include tmt setup downstream Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> * Enable packit testing Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> * Add rpmlint jobs Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> * Add simple smoke test Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> * Resolve rpmlint issues Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> --------- Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
- Loading branch information
Showing
10 changed files
with
92 additions
and
8 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,3 @@ | ||
Filters = [ | ||
"unknown-key", | ||
] |
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,4 @@ | ||
discover: | ||
how: fmf | ||
dist-git-source: true | ||
path: .distro |
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,20 @@ | ||
summary: | ||
Perform rpmlint and rpminspect tests | ||
prepare: | ||
- name: Install rpmlint packages | ||
how: install | ||
package: | ||
- rpmlint | ||
- rpminspect | ||
- rpminspect-data-fedora | ||
- name: Download the source rpm | ||
how: shell | ||
script: cd /tmp && curl -O ${PACKIT_SRPM_URL} | ||
- name: Download rpm packages | ||
how: shell | ||
script: cd /tmp && dnf download ${PACKIT_COPR_RPMS} | ||
discover+: | ||
how: fmf | ||
filter: "tag: rpmlint" | ||
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,7 @@ | ||
summary: | ||
Basic smoke tests | ||
discover+: | ||
how: fmf | ||
filter: "tag: smoke" | ||
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
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,16 @@ | ||
# Common test variables | ||
tag: | ||
- rpmlint | ||
tier: 0 | ||
path: / | ||
|
||
# Define tests | ||
/rpmlint-spec: | ||
summary: Rpmlint the spec files | ||
test: rpmlint ./python-scikit-build.spec | ||
/rpmlint-rpms: | ||
summary: Rpmlint the rpms | ||
test: rpmlint -c packit.toml /tmp/*.rpm | ||
/rpminspect-rpms: | ||
summary: Rpminspect the rpms | ||
test: ls /tmp/*.rpm | xargs -L1 rpminspect-fedora -E metadata,disttag |
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,9 @@ | ||
# Common test variables | ||
tag: | ||
- smoke | ||
tier: 0 | ||
path: / | ||
|
||
# Define tests | ||
/version: | ||
test: python3 -c "import skbuild; print(skbuild.__version__)" |
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