Skip to content

wickedOne/gitlab-perl-helpers

Repository files navigation

Coverage Status codecov

gitlab-perl-helpers

collection of perl helpers for implementing code owner specific gitlab ci steps. the general idea is to use the paths defined in the CODEOWNERS file for your team to interact with the merge request by either using all paths in the CODEOWNERS file, or intersect the merge request changes with those.

environment variables

these scripts rely on a couple of environment variables.

global variables

the following environment variables are used by all scripts

  • DEV_TEAM: owner as defined in the CODEOWNERS file
  • EXCLUDE_PATHS: (optional): comma seperated list of paths to exclude while defined in the CODEOWNERS file for owner DEV_TEAM. defaults to empty string.
  • CODEOWNERS: (optional): path to codeowners file, defaults to ./CODEOWNERS

details

most scripts generate a custom config file on the fly.

for more details on supported (static) analysis tools and implementation examples see the following:

  1. PHPUnit
  2. Infection
  3. Psalm
  4. PHPStan
  5. PHPMD