tests: rewrite coverity job to avoid deprecated "only" feature

The "only" feature has been deprecated for a while. The standard
replacement is the rules:if feature.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
This commit is contained in:
Zygmunt Krynicki 2025-01-20 14:05:52 +01:00
parent 817d5eed1d
commit 61d75a11ef

View file

@ -178,11 +178,6 @@ coverity:
stage: .post
extends:
- .ubuntu-before_script
only:
refs:
- master
variables:
- $CI_PROJECT_PATH == "apparmor/apparmor"
script:
- apt-get install --no-install-recommends -y curl git texlive-latex-recommended
- *install-c-build-deps
@ -196,3 +191,5 @@ coverity:
artifacts:
paths:
- "apparmor-*.tar.gz"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_PATH == "apparmor/apparmor"