Commit 11118452 authored by Raidelet Nicolas's avatar Raidelet Nicolas Committed by Guillaume Perréal
Browse files

maj ci gitlab

Showing with 26 additions and 23 deletions
+26 -23
......@@ -3,39 +3,42 @@
tags: [ docker ]
image: isdevtools.irstea.fr/poleis/php-analysis:7.1
phpunit:
<<: *defaults
before_script:
- composer install --prefer-dist --no-progress --no-suggest
script:
- vendor/bin/phpunit
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- vendor
phploc:
<<: *defaults
script: phploc --exclude=vendor .
script: phploc src tests
lint:
<<: *defaults
script: parallel-lint -j $(nproc) --exclude vendor .
phpcs:
<<: *defaults
script: phpcs --colors --parallel=$(nproc) --standard=/rules/phpcs.xml .
allow_failure: true
script:
- parallel-lint -j $(nproc) src tests
- twig-lint lint src
- yaml-lint src
php-cs-fixer:
<<: *defaults
script: php-cs-fixer fix --dry-run --config=/rules/php-cs-fixer.php
script: php-cs-fixer fix --dry-run --verbose
phpcpd:
<<: *defaults
script: phpcpd --exclude=vendor --fuzzy .
script: phpcpd --fuzzy src tests
phpmd:
.with-vendors: &with-vendors
<<: *defaults
script: phpmd . text /rules/phpmd.xml --suffixes=php
allow_failure: true
before_script:
- composer install --prefer-dist --no-progress --no-suggest
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- /composer/cache
phpunit:
<<: *with-vendors
script: vendor/bin/phpunit
composer-require-checker:
<<: *with-vendors
script: composer-require-checker
phpmd:
<<: *with-vendors
script: phpmd src,tests text ./phpmd-ruleset.xml --suffixes=php
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment