src_prepare-overlay/.gitlab-ci.yml
Alfred Wingate 372e5a14ed
.gitlab-ci.yml: add a strict check to catch broken packages
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-09-27 22:39:19 +03:00

57 lines
1.7 KiB
YAML

---
# This file is part of src_prepare-overlay.
# src_prepare-overlay is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# src_prepare-overlay is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with src_prepare-overlay. If not, see <https://www.gnu.org/licenses/>.
# Original author: Maciej Barć <xgqt@riseup.net>
# Copyright (c) 2020-2021, src_prepare group
# Licensed under the GNU GPL v2 License
image: registry.gitlab.com/src_prepare/gentoo-repoman-container:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
common_pkgcheck_args: '--color 1'
pkgcheck_full_scan:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: never
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
when: manual
- allow_failure: true
script:
- pkgcheck ci $common_pkgcheck_args
pkgcheck_strict_scan:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: never
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
when: manual
script:
# temporarily disable BadDefaultUseFlags
- pkgcheck ci -k error,-BadDefaultUseFlags $common_pkgcheck_args
pkgcheck_merge:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
- pkgcheck scan $common_pkgcheck_args --commits $CI_MERGE_REQUEST_DIFF_BASE_SHA..$CI_COMMIT_SHA