2021-01-23 12:31:53 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
# 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/>.
|
|
|
|
|
2021-04-28 23:02:47 +02:00
|
|
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
2021-01-23 12:31:53 +01:00
|
|
|
# Copyright (c) 2020-2021, src_prepare group
|
|
|
|
# Licensed under the GNU GPL v2 License
|
|
|
|
|
|
|
|
|
2021-04-06 18:33:57 +02:00
|
|
|
image: registry.gitlab.com/src_prepare/gentoo-repoman-container:latest
|
2020-03-20 19:51:21 +01:00
|
|
|
|
2021-01-23 12:31:53 +01:00
|
|
|
|
2020-12-19 13:58:02 +01:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2022-12-19 21:44:13 +01:00
|
|
|
common_pkgcheck_args: '--color 1'
|
2022-07-05 20:17:21 +02:00
|
|
|
|
|
|
|
pkgcheck_full_scan:
|
|
|
|
rules:
|
2022-12-19 21:44:13 +01:00
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
|
|
when: never
|
|
|
|
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
|
|
|
when: manual
|
2022-07-05 20:17:21 +02:00
|
|
|
- allow_failure: true
|
|
|
|
script:
|
2023-11-23 17:12:08 +01:00
|
|
|
# disable checks that aren't a big deal to have less noise.
|
|
|
|
- pkgcheck ci -k ,-RedundantVersion,-NonexistentDeps,-NonexistentBlocker $common_pkgcheck_args
|
2022-07-05 20:17:21 +02:00
|
|
|
|
2023-09-27 21:39:19 +02:00
|
|
|
pkgcheck_strict_scan:
|
|
|
|
rules:
|
2023-10-13 04:55:15 +02:00
|
|
|
- if: $CI_PIPELINE_SOURCE == 'push'
|
2023-09-27 21:39:19 +02:00
|
|
|
- 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
|
|
|
|
|
2022-07-05 20:17:21 +02:00
|
|
|
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
|
|
|
|
|