Compare commits

..

2 Commits

Author SHA1 Message Date
Parona
eab9b5452b 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
2022-07-05 18:17:22 +00:00
Parona
894ef1deee Add pkgcheck based QA for merge requests and pushes. Also non fatal check for the whole state of repo to be reminded of issues. 2022-07-05 18:17:21 +00:00
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:
GIT_SUBMODULE_STRATEGY: recursive
common_pkgcheck_args: "--color 1"
stages:
- test
test:
stage: test
repoman_push:
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

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