mirror of https://github.com/ansible/ansible.git
Test both original and latest dnf versions (#85342)
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit ef9d92b31d)
pull/85383/head
parent
9c0dc6c88a
commit
3de2b9082c
@ -0,0 +1,4 @@
|
||||
context/target
|
||||
destructive
|
||||
shippable/posix/group7
|
||||
needs/target/dnf
|
||||
@ -0,0 +1,16 @@
|
||||
- when: ansible_distribution == "Fedora"
|
||||
block:
|
||||
- command: "dnf install -y 'dnf-command(copr)'"
|
||||
|
||||
- name: Test against dnf5 nightly build to detect any issues early
|
||||
command: dnf copr enable -y rpmsoftwaremanagement/dnf-nightly
|
||||
|
||||
- name: Run DNF tests
|
||||
include_role:
|
||||
name: dnf
|
||||
vars:
|
||||
# Since dnf-latest is the only dnf target that installs the latest version
|
||||
# test the 'auto_install_module_deps' feature here.
|
||||
test_auto_install: true
|
||||
always:
|
||||
- command: dnf copr disable -y rpmsoftwaremanagement/dnf-nightly
|
||||
@ -0,0 +1,4 @@
|
||||
context/target
|
||||
destructive
|
||||
shippable/posix/group7
|
||||
needs/target/dnf
|
||||
@ -0,0 +1,13 @@
|
||||
- when: ansible_distribution == "Fedora"
|
||||
block:
|
||||
- name: Ensure libdnf is not installed
|
||||
command: dnf remove -y python3-libdnf5
|
||||
|
||||
- name: Downgrade dnf to the original version
|
||||
command: dnf install -y --disable-repo=* --enable-repo=fedora python3-libdnf5
|
||||
|
||||
- name: Run DNF tests
|
||||
include_role:
|
||||
name: dnf
|
||||
vars:
|
||||
test_auto_install: false
|
||||
Loading…
Reference in New Issue