Merge branch 'ci' into 'master'

Add pkgcheck based QA for merge requests and pushes. Also non fatal check for the whole state of repo to be reminded of issues.

See merge request src_prepare/src_prepare-overlay!285
This commit is contained in:
Parona 2022-07-05 18:17:22 +00:00
commit eab9b5452b
2 changed files with 24 additions and 4 deletions

View File

@ -26,11 +26,26 @@ image: registry.gitlab.com/src_prepare/gentoo-repoman-container:latest
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
common_pkgcheck_args: "--color 1"
stages:
- test
test: repoman_push:
stage: test
script: script:
- bash scripts/repomanci - 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

5
metadata/pkgcheck.conf Normal file
View File

@ -0,0 +1,5 @@
[src_prepare-overlay]
profiles = stable,-default/linux/amd64/17.1/no-multilib,-default/linux/amd64/17.1/no-multilib/hardened,-default/linux/amd64/17.1/no-multilib/hardened/selinux
# Append warning, style progressively as issues are fixed
exit = error
keywords = -NonexistentBlocker