Skip to content

collection of perl helpers for implementing code owner specific gitlab ci jobs

License

Notifications You must be signed in to change notification settings

wickedOne/gitlab-perl-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

scripts

the ./scripts/ directory contains scripts used in the example configuration. please use them as templates and adjust them to your needs.

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