CI: Drop STI and use tmt instead
Resolves: rhbz#2383038
This commit is contained in:
parent
5826dff7bb
commit
38746eb07f
4 changed files with 52 additions and 40 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
51
plan.fmf
Normal file
51
plan.fmf
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
execute:
|
||||
how: tmt
|
||||
|
||||
discover:
|
||||
- name: same_repo
|
||||
how: shell
|
||||
tests:
|
||||
- name: smoke
|
||||
test: ./smoke/runtest.sh
|
||||
path: /tests
|
||||
- name: rpms_pyproject-rpm-macros
|
||||
how: shell
|
||||
url: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git
|
||||
tests:
|
||||
- name: pyproject_pytest
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-pytest
|
||||
- name: pyproject_entrypoints
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-entrypoints
|
||||
- name: pyproject_pluggy
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-pluggy
|
||||
- name: pyproject_clikit
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-clikit
|
||||
- name: rpms_python-rpm-generators
|
||||
how: shell
|
||||
test: |
|
||||
# Need to clone on our own, tmt clones it into 'tests' subdirectory
|
||||
# which breaks fedpkg-minimal pkgname detection
|
||||
git clone --depth=1 https://src.fedoraproject.org/rpms/python-rpm-generators.git python-rpm-generators &&
|
||||
cd python-rpm-generators &&
|
||||
./tests/download_data_and_run_pytest.sh
|
||||
prepare:
|
||||
- name: Install dependencies
|
||||
how: install
|
||||
package:
|
||||
- fedpkg-minimal
|
||||
- mock
|
||||
- python3-pip
|
||||
- python3-pytest
|
||||
- python3-pyyaml
|
||||
- python3-setuptools
|
||||
- python3-wheel
|
||||
- rpmdevtools
|
||||
- rpm-build
|
||||
- dnf
|
||||
- name: Update packages
|
||||
how: shell
|
||||
script: dnf upgrade -y
|
||||
0
tests/smoke/runtest.sh
Normal file → Executable file
0
tests/smoke/runtest.sh
Normal file → Executable file
|
|
@ -1,40 +0,0 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
repositories:
|
||||
- repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"
|
||||
dest: "pyproject-rpm-macros"
|
||||
- repo: "https://src.fedoraproject.org/rpms/python-rpm-generators.git"
|
||||
dest: "python-rpm-generators"
|
||||
tests:
|
||||
- pyproject_pytest:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-pytest
|
||||
- pyproject_entrypoints:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-entrypoints
|
||||
- pyproject_pluggy:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-pluggy
|
||||
- pyproject_clikit:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-clikit
|
||||
- rpm_generators_unit_tests:
|
||||
dir: python-rpm-generators
|
||||
run: ./tests/download_data_and_run_pytest.sh
|
||||
- smoke:
|
||||
dir: .
|
||||
run: ./smoke/runtest.sh
|
||||
required_packages:
|
||||
- fedpkg-minimal
|
||||
- mock
|
||||
- python3-pip
|
||||
- python3-pytest
|
||||
- python3-pyyaml
|
||||
- python3-setuptools
|
||||
- python3-wheel
|
||||
- rpmdevtools
|
||||
- rpm-build
|
||||
Loading…
Add table
Add a link
Reference in a new issue