src_prepare-overlay/.gitlab-ci.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

---
# 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
2020-03-20 19:51:21 +01:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
common_pkgcheck_args: "--color 1"
2020-03-20 19:51:21 +01:00
repoman_push:
2020-03-20 19:51:21 +01:00
script:
- bash scripts/repomanci
pkgcheck_push:
script:
- pkgcheck scan $common_pkgcheck_args --commits $CI_COMMIT_SHA
pkgcheck_full_scan:
rules:
- allow_failure: true
script:
- pkgcheck ci $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