mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Only run amazon linux2 package tests for >=3006
This commit is contained in:
parent
1195971ffd
commit
a199b5b454
1 changed files with 15 additions and 2 deletions
17
tools/ci.py
17
tools/ci.py
|
@ -721,6 +721,12 @@ def pkg_matrix(
|
|||
sessions = [
|
||||
"install",
|
||||
]
|
||||
# OSs that where never included in 3005
|
||||
# We cannot test an upgrade for this OS on this version
|
||||
not_3005 = ["amazonlinux-2-arm64", "photonos-5", "photonos-5-arm64"]
|
||||
# OSs that where never included in 3006
|
||||
# We cannot test an upgrade for this OS on this version
|
||||
not_3006 = ["photonos-5", "photonos-5-arm64"]
|
||||
if (
|
||||
distro_slug
|
||||
not in [
|
||||
|
@ -806,10 +812,17 @@ def pkg_matrix(
|
|||
for version in versions:
|
||||
if (
|
||||
version
|
||||
and distro_slug.startswith("photonos-5")
|
||||
and distro_slug in not_3005
|
||||
and version < tools.utils.Version("3006.0")
|
||||
):
|
||||
# We never build packages for these OSs in 3005
|
||||
continue
|
||||
elif (
|
||||
version
|
||||
and distro_slug in not_3006
|
||||
and version < tools.utils.Version("3007.0")
|
||||
):
|
||||
# We never build packages for Photon OS 5 prior to 3007.0
|
||||
# We never build packages for these OSs in 3006
|
||||
continue
|
||||
_matrix.append(
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue