Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wickedone/gitlab-perl-helpers

collection of perl helpers for implementing code owner specific gitlab ci jobs
https://github.com/wickedone/gitlab-perl-helpers

continuous-integration coverage gitlab gitlab-ci infection mutation-testing perl php phpmd phpstan phpunit psalm test-automation

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Coverage Status](https://coveralls.io/repos/github/wickedOne/gitlab-perl-helpers/badge.svg?branch=master)](https://coveralls.io/github/wickedOne/gitlab-perl-helpers?branch=master)
[![codecov](https://codecov.io/gh/wickedOne/gitlab-perl-helpers/graph/badge.svg?token=J4SE1MBNOX)](https://codecov.io/gh/wickedOne/gitlab-perl-helpers)
# 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](doc/PHPUnit.md)
2. [Infection](doc/Infection.md)
3. [Psalm](doc/Psalm.md)
4. [PHPStan](doc/PHPStan.md)
5. [PHPMD](doc/PHPMD.md)