Created
March 18, 2020 13:41
-
-
Save ahmed-bhs/0e47cdadbbb55b462c8508f194c9dc21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- lint | |
- test | |
test: | |
stage: test | |
image: edbizarro/gitlab-ci-pipeline-php:7.4-alpine | |
script: | |
- composer install --prefer-dist --no-ansi --no-interaction --no-progress | |
phpstan: | |
image: jakzal/phpqa | |
stage: test | |
script: phpstan analyse --level 2 -c ./ci/phpstan.neon src | |
allow_failure: true | |
php-metrics: | |
image: jakzal/phpqa | |
stage: lint | |
script: phpmetrics --report-html=var/php-metrics src | |
artifacts: | |
paths: | |
- var/php-metrics/ | |
allow_failure: true | |
php-phpmd: | |
image: jakzal/phpqa | |
stage: lint | |
script: phpmd src text ./ci/phpmd.xml | |
artifacts: | |
paths: | |
- var/phpmd.html | |
allow_failure: true | |
php-deprecation-detector: | |
image: jakzal/phpqa | |
stage: lint | |
script: | |
- deprecation-detector check src vendor | |
allow_failure: true | |
lint:php: | |
stage: lint | |
image: sixlive/php-lint-fix | |
script: | |
- php-cs-fixer fix --dry-run --diff | |
allow_failure: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment