mirror of
https://github.com/containers/podman.git
synced 2025-06-27 05:26:50 +08:00
Skip rhel-release branch unnecessary CI tasks
RHEL release-branches potentially need to be maintained for a very long time. Improve reliability and CI-speed by skipping tasks which are not needed for RHEL. For example, there will (likely) never be RHEL releases of the MacOS or Windows versions of podman-remote. Also, relocate the `win_installer_task` in the config. to better reflect it's sequence among CI tasks. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
55
.cirrus.yml
55
.cirrus.yml
@ -363,9 +363,12 @@ swagger_task:
|
|||||||
alt_build_task:
|
alt_build_task:
|
||||||
name: "$ALT_NAME"
|
name: "$ALT_NAME"
|
||||||
alias: alt_build
|
alias: alt_build
|
||||||
# Don't create task for [CI:DOCS] or multiarch builds
|
# Don't create task for [CI:DOCS], multiarch or rhel-release builds
|
||||||
# Docs: ./contrib/cirrus/CIModes.md
|
# Docs: ./contrib/cirrus/CIModes.md
|
||||||
only_if: $CIRRUS_CRON != 'multiarch'
|
only_if: &no_multiarch_rhel |
|
||||||
|
$CIRRUS_CRON != 'multiarch' &&
|
||||||
|
$CIRRUS_BRANCH !=~ 'v[0-9\.]+-rhel' &&
|
||||||
|
$CIRRUS_BASE_BRANCH !=~ 'v[0-9\.]+-rhel'
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
env:
|
env:
|
||||||
@ -393,12 +396,31 @@ alt_build_task:
|
|||||||
always: *runner_stats
|
always: *runner_stats
|
||||||
|
|
||||||
|
|
||||||
|
win_installer_task:
|
||||||
|
name: "Verify Win Installer Build"
|
||||||
|
alias: win_installer
|
||||||
|
# Don't run for multiarch container image cirrus-cron job.
|
||||||
|
only_if: *no_multiarch_rhel
|
||||||
|
depends_on:
|
||||||
|
- alt_build
|
||||||
|
windows_container:
|
||||||
|
image: cirrusci/windowsservercore:2019
|
||||||
|
env:
|
||||||
|
PATH: "${PATH};C:\\ProgramData\\chocolatey\\bin"
|
||||||
|
CIRRUS_SHELL: powershell
|
||||||
|
# Fake version, we are only testing the installer functions, so version doesn't matter
|
||||||
|
WIN_INST_VER: 9.9.9
|
||||||
|
CIRRUS_WORKING_DIR: "${LOCALAPPDATA}\\Temp\\cirrus-ci-build"
|
||||||
|
install_script: '.\contrib\cirrus\win-installer-install.ps1'
|
||||||
|
main_script: '.\contrib\cirrus\win-installer-main.ps1'
|
||||||
|
|
||||||
|
|
||||||
# Confirm building the remote client, natively on a Mac OS-X VM.
|
# Confirm building the remote client, natively on a Mac OS-X VM.
|
||||||
osx_alt_build_task:
|
osx_alt_build_task:
|
||||||
name: "OSX Cross"
|
name: "OSX Cross"
|
||||||
alias: osx_alt_build
|
alias: osx_alt_build
|
||||||
# Docs: ./contrib/cirrus/CIModes.md
|
# Docs: ./contrib/cirrus/CIModes.md
|
||||||
only_if: $CIRRUS_CRON != 'multiarch'
|
only_if: *no_multiarch_rhel
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
env:
|
env:
|
||||||
@ -544,7 +566,9 @@ windows_smoke_test_task:
|
|||||||
$CIRRUS_TAG == '' &&
|
$CIRRUS_TAG == '' &&
|
||||||
$CIRRUS_CRON != 'multiarch' &&
|
$CIRRUS_CRON != 'multiarch' &&
|
||||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
|
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
|
||||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:COPR.*'
|
$CIRRUS_CHANGE_TITLE !=~ '.*CI:COPR.*' &&
|
||||||
|
$CIRRUS_BRANCH !=~ 'v[0-9\.]+-rhel' &&
|
||||||
|
$CIRRUS_BASE_BRANCH !=~ 'v[0-9\.]+-rhel'
|
||||||
depends_on:
|
depends_on:
|
||||||
- alt_build
|
- alt_build
|
||||||
experimental: true # Enable labeling of EC2 VMs with cirrus task ID
|
experimental: true # Enable labeling of EC2 VMs with cirrus task ID
|
||||||
@ -1067,7 +1091,9 @@ artifacts_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
|
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
|
||||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:COPR.*' &&
|
$CIRRUS_CHANGE_TITLE !=~ '.*CI:COPR.*' &&
|
||||||
$CIRRUS_CRON != 'multiarch'
|
$CIRRUS_CRON != 'multiarch' &&
|
||||||
|
$CIRRUS_BRANCH !=~ 'v[0-9\.]+-rhel' &&
|
||||||
|
$CIRRUS_BASE_BRANCH !=~ 'v[0-9\.]+-rhel'
|
||||||
depends_on:
|
depends_on:
|
||||||
- success
|
- success
|
||||||
# This task is a secondary/convenience for downstream consumers, don't
|
# This task is a secondary/convenience for downstream consumers, don't
|
||||||
@ -1116,25 +1142,6 @@ artifacts_task:
|
|||||||
type: application/octet-stream
|
type: application/octet-stream
|
||||||
|
|
||||||
|
|
||||||
win_installer_task:
|
|
||||||
name: "Verify Win Installer Build"
|
|
||||||
alias: win_installer
|
|
||||||
# Don't run for multiarch container image cirrus-cron job.
|
|
||||||
only_if: $CIRRUS_CRON != 'multiarch'
|
|
||||||
depends_on:
|
|
||||||
- alt_build
|
|
||||||
windows_container:
|
|
||||||
image: cirrusci/windowsservercore:2019
|
|
||||||
env:
|
|
||||||
PATH: "${PATH};C:\\ProgramData\\chocolatey\\bin"
|
|
||||||
CIRRUS_SHELL: powershell
|
|
||||||
# Fake version, we are only testing the installer functions, so version doesn't matter
|
|
||||||
WIN_INST_VER: 9.9.9
|
|
||||||
CIRRUS_WORKING_DIR: "${LOCALAPPDATA}\\Temp\\cirrus-ci-build"
|
|
||||||
install_script: '.\contrib\cirrus\win-installer-install.ps1'
|
|
||||||
main_script: '.\contrib\cirrus\win-installer-main.ps1'
|
|
||||||
|
|
||||||
|
|
||||||
# When a new tag is pushed, confirm that the code and commits
|
# When a new tag is pushed, confirm that the code and commits
|
||||||
# meet criteria for an official release.
|
# meet criteria for an official release.
|
||||||
release_task:
|
release_task:
|
||||||
|
Reference in New Issue
Block a user