| |
@@ -3,9 +3,23 @@
|
| |
tags:
|
| |
- classic
|
| |
tasks:
|
| |
- - dnf:
|
| |
+ - ansible.builtin.dnf:
|
| |
name: "*"
|
| |
state: latest
|
| |
+ - ansible.builtin.group:
|
| |
+ name: mock
|
| |
+ gid: 135
|
| |
+ - ansible.builtin.user:
|
| |
+ name: testuser
|
| |
+ groups: mock
|
| |
+ append: yes
|
| |
+ - ansible.builtin.file:
|
| |
+ path: /tmp/artifacts
|
| |
+ state: directory
|
| |
+ recurse: yes
|
| |
+ owner: root
|
| |
+ group: root
|
| |
+ mode: u=rwx,g=rwx,o=rwx
|
| |
|
| |
- hosts: localhost
|
| |
roles:
|
| |
@@ -15,83 +29,12 @@
|
| |
tests:
|
| |
- pytest:
|
| |
dir: .
|
| |
- run: ./mocktest.sh python-pytest
|
| |
- - entrypoints:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-entrypoints
|
| |
- - pluggy:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-pluggy
|
| |
- - clikit:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-clikit
|
| |
- - distroinfo:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-distroinfo
|
| |
- - tldr:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh tldr
|
| |
- - openqa_client:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-openqa_client
|
| |
- - httpbin:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-httpbin
|
| |
- - ldap:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-ldap
|
| |
- - isort:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-isort
|
| |
- - mistune:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-mistune
|
| |
- - setuptools_scm:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-setuptools_scm
|
| |
- - ipykernel:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-ipykernel
|
| |
- - zope:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-zope-event
|
| |
- - django:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-django
|
| |
- - printrun:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh printrun
|
| |
- - dns_lexicon:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-dns-lexicon
|
| |
- - flit_core:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-flit-core
|
| |
- - poetry_core:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-poetry-core
|
| |
- - setuptools:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-setuptools
|
| |
- - markupsafe:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-markupsafe
|
| |
- - getmac:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-getmac
|
| |
- - userpath:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh python-userpath
|
| |
- - double_install:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh double-install
|
| |
- - fake_requirements:
|
| |
- dir: .
|
| |
- run: ./mocktest.sh fake-requirements
|
| |
+ run: runuser testuser -c './mocktest.sh python-pytest'
|
| |
- escape_percentages:
|
| |
dir: .
|
| |
- run: rpmbuild -ba escape_percentages.spec
|
| |
+ run: runuser testuser -c 'rpmbuild -ba escape_percentages.spec'
|
| |
required_packages:
|
| |
+ - util-linux
|
| |
- mock
|
| |
- rpmdevtools
|
| |
- rpm-build
|
| |
See https://github.com/rpm-software-management/mock/issues/990
This will require changes in all packages using this script.