[packit] 0.12.0 upstream release
Upstream tag: 0.12.0 Upstream commit: 1f184858 Signed-off-by: Packit <hello@packit.dev>
This commit is contained in:
parent
88b4b5dda4
commit
3453cd5ad0
7 changed files with 49 additions and 10 deletions
|
|
@ -5,10 +5,25 @@ from pathlib import Path
|
|||
|
||||
import fmf
|
||||
|
||||
# Set discover of specfile tests to a fixed commit
|
||||
tree_root = Path.cwd().absolute()
|
||||
node = fmf.Tree(tree_root).find("/plans")
|
||||
with node as data:
|
||||
tree = fmf.Tree(tree_root)
|
||||
main_node = tree.find("/plans")
|
||||
with main_node as data:
|
||||
data["discover"]["url"] = "https://github.com/packit/specfile.git"
|
||||
data["discover"]["ref"] = (
|
||||
subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip()
|
||||
)
|
||||
|
||||
|
||||
# Set discover of packit integration tests to the current main
|
||||
packit_node = tree.find("/plans/packit-integration")
|
||||
with packit_node as data:
|
||||
data["discover"]["ref"] = (
|
||||
subprocess.check_output(
|
||||
["git", "ls-remote", "https://github.com/packit/packit", "main"]
|
||||
)
|
||||
.decode()
|
||||
.strip()
|
||||
.split()[0]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discover:
|
||||
how: fmf
|
||||
url: https://github.com/packit/specfile.git
|
||||
ref: 3581c3cdf539a528eda246383e3e26f101ecb156
|
||||
ref: 1f184858eb3a05e2b8d6a5d538e04acd96d377f8
|
||||
execute:
|
||||
how: tmt
|
||||
|
|
|
|||
19
plans/packit-integration.fmf
Normal file
19
plans/packit-integration.fmf
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
discover:
|
||||
how: fmf
|
||||
url: https://github.com/packit/packit
|
||||
filter: tier:0 | tier:1
|
||||
ref: 2a071f16c039feeec25d26c68650bdda1787ae32
|
||||
adjust:
|
||||
- when: how == integration
|
||||
because: provide latest python-specfile rpm when running locally
|
||||
prepare+:
|
||||
- name: python3-specfile rpm
|
||||
how: install
|
||||
directory: noarch/
|
||||
- when: distro == rhel-9 or distro == centos-9 or distro == centos-stream-9
|
||||
because: 'flexmock and deepdiff are not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251'
|
||||
prepare+:
|
||||
- how: install
|
||||
package: python3-pip
|
||||
- how: shell
|
||||
script: pip3 install flexmock deepdiff
|
||||
Loading…
Add table
Add a link
Reference in a new issue