41 lines
814 B
YAML
41 lines
814 B
YAML
image: jakzal/phpqa
|
|
|
|
include:
|
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
|
|
|
before_script:
|
|
- composer install --no-scripts
|
|
|
|
cache:
|
|
paths:
|
|
- vendor/
|
|
|
|
stages:
|
|
- SecurityChecker
|
|
- CodingStandards
|
|
- UnitTests
|
|
|
|
security-checker:
|
|
stage: SecurityChecker
|
|
script:
|
|
- local-php-security-checker --path=./composer.lock
|
|
allow_failure: false
|
|
|
|
phpcs:
|
|
stage: CodingStandards
|
|
script:
|
|
- phpcs --version && phpcs --standard=PSR12 --ignore=./src/Kernel.php ./src
|
|
allow_failure: false
|
|
|
|
phpstan:
|
|
stage: CodingStandards
|
|
script:
|
|
- phpstan --version && phpstan analyse ./src
|
|
allow_failure: false
|
|
|
|
twig-lint:
|
|
stage: CodingStandards
|
|
script:
|
|
- twig-lint --version && twig-lint lint ./templates
|
|
allow_failure: false
|