--- # 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 . # Original author: Maciej Barć # 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: # disable checks that aren't a big deal to have less noise. - pkgcheck ci -k ,-RedundantVersion,-NonexistentDeps,-NonexistentBlocker $common_pkgcheck_args pkgcheck_strict_scan: rules: - if: $CI_PIPELINE_SOURCE == 'push' - if: $CI_PIPELINE_SOURCE == 'merge_request_event' when: never - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH when: manual script: - pkgcheck ci -k error $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