Drop STI and use tmt instead
Resolve: rhbz#2383050
This commit is contained in:
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
97
plan.fmf
Normal file
97
plan.fmf
Normal file
@@ -0,0 +1,97 @@
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
discover:
|
||||
- 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_pluggy
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-pluggy
|
||||
- name: pyproject_openqa_client
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-openqa_client
|
||||
- name: same_repo
|
||||
how: shell
|
||||
dist-git-source: true
|
||||
dist-git-download-only: true
|
||||
tests:
|
||||
- name: all_supplementing_pythons
|
||||
path: /tests
|
||||
test: ./all_supplementing_pythons.py
|
||||
- name: mock_with_tests
|
||||
# Needs cwd to contain downloaded sources, path to mocktes.sh depends on tmt tree structure
|
||||
test: |
|
||||
cd $TMT_SOURCE_DIR &&
|
||||
$TMT_TREE/../discover/rpms_pyproject-rpm-macros/tests/tests/mocktest.sh python-tox --enable-network --with ci_tests
|
||||
- name: tests_python
|
||||
how: shell
|
||||
url: https://src.fedoraproject.org/tests/python.git
|
||||
tests:
|
||||
- name: smoke27
|
||||
path: /smoke
|
||||
test: VERSION=2.7 INSTALL_OR_SKIP=true METHOD=virtualenv TOX_REQUIRES="virtualenv<20.22.0" ./venv.sh
|
||||
- name: smoke36
|
||||
path: /smoke
|
||||
test: VERSION=3.6 INSTALL_OR_SKIP=true TOX_REQUIRES="virtualenv<20.22.0" ./venv.sh
|
||||
- name: smoke39
|
||||
path: /smoke
|
||||
test: VERSION=3.9 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke310
|
||||
path: /smoke
|
||||
test: VERSION=3.10 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke311
|
||||
path: /smoke
|
||||
test: VERSION=3.11 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke312
|
||||
path: /smoke
|
||||
test: VERSION=3.12 ./venv.sh
|
||||
- name: smoke313
|
||||
path: /smoke
|
||||
test: VERSION=3.13 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke313t
|
||||
path: /smoke
|
||||
test: VERSION=3.13t INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke314
|
||||
path: /smoke
|
||||
test: VERSION=3.14 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke314t
|
||||
path: /smoke
|
||||
test: VERSION=3.14t INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke_pypy39
|
||||
path: /smoke
|
||||
test: PYTHON=pypy3.9 VERSION=3.9 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke_pypy310
|
||||
path: /smoke
|
||||
test: PYTHON=pypy3.10 VERSION=3.10 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- name: smoke_pypy311
|
||||
path: /smoke
|
||||
test: PYTHON=pypy3.11 VERSION=3.11 INSTALL_OR_SKIP=true ./venv.sh
|
||||
|
||||
prepare:
|
||||
- name: Install dependencies
|
||||
how: install
|
||||
package:
|
||||
- gcc
|
||||
- virtualenv
|
||||
- python3-devel
|
||||
- python3.12-devel
|
||||
- python3-tox
|
||||
- python3-dnf
|
||||
- mock
|
||||
- rpmdevtools
|
||||
- rpm-build
|
||||
- python3-pyyaml
|
||||
- rpm
|
||||
- dnf
|
||||
- name: Update packages
|
||||
how: shell
|
||||
script: dnf upgrade -y
|
||||
- name: rpm_qa
|
||||
order: 100
|
||||
how: shell
|
||||
script: rpm -qa | sort | tee $TMT_PLAN_DATA/rpmqa.txt
|
||||
@@ -1,91 +0,0 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
tasks:
|
||||
- dnf:
|
||||
name: "*"
|
||||
state: latest
|
||||
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
pre_tasks:
|
||||
- import_role:
|
||||
name: standard-test-source
|
||||
vars:
|
||||
fetch_only: True
|
||||
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
repositories:
|
||||
- repo: "https://src.fedoraproject.org/tests/python.git"
|
||||
dest: "python"
|
||||
- repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"
|
||||
dest: "pyproject-rpm-macros"
|
||||
tests:
|
||||
- mock_with_tests:
|
||||
dir: .
|
||||
run: pyproject-rpm-macros/tests/mocktest.sh python-tox --enable-network --with ci_tests
|
||||
- all_supplementing_pythons:
|
||||
dir: tests
|
||||
run: ./all_supplementing_pythons.py
|
||||
- smoke27:
|
||||
dir: python/smoke
|
||||
run: VERSION=2.7 INSTALL_OR_SKIP=true METHOD=virtualenv TOX_REQUIRES="virtualenv<20.22.0" ./venv.sh
|
||||
- smoke36:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.6 INSTALL_OR_SKIP=true TOX_REQUIRES="virtualenv<20.22.0" ./venv.sh
|
||||
- smoke39:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.9 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke310:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.10 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke311:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.11 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke312:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.12 ./venv.sh
|
||||
- smoke313:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.13 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke313t:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.13t INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke314:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.14 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke314t:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.14t INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke_pypy39:
|
||||
dir: python/smoke
|
||||
run: PYTHON=pypy3.9 VERSION=3.9 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke_pypy310:
|
||||
dir: python/smoke
|
||||
run: PYTHON=pypy3.10 VERSION=3.10 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- smoke_pypy311:
|
||||
dir: python/smoke
|
||||
run: PYTHON=pypy3.11 VERSION=3.11 INSTALL_OR_SKIP=true ./venv.sh
|
||||
- pyproject_pytest:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-pytest
|
||||
- pyproject_pluggy:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-pluggy
|
||||
- pyproject_openqa_client:
|
||||
dir: pyproject-rpm-macros/tests
|
||||
run: ./mocktest.sh python-openqa_client
|
||||
required_packages:
|
||||
- gcc
|
||||
- virtualenv
|
||||
- python3-devel
|
||||
- python3.12-devel
|
||||
- python3-tox
|
||||
- python3-dnf
|
||||
- mock
|
||||
- rpmdevtools
|
||||
- rpm-build
|
||||
- python3-pyyaml
|
||||
Reference in New Issue
Block a user