Commit 4d292fda authored by Raidelet Nicolas's avatar Raidelet Nicolas
Browse files

maj ci gitlab

parent b0da07d0
No related merge requests found
Showing with 26 additions and 23 deletions
+26 -23
...@@ -3,39 +3,42 @@ ...@@ -3,39 +3,42 @@
tags: [ docker ] tags: [ docker ]
image: isdevtools.irstea.fr/poleis/php-analysis:7.1 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: phploc:
<<: *defaults <<: *defaults
script: phploc --exclude=vendor . script: phploc src tests
lint: lint:
<<: *defaults <<: *defaults
script: parallel-lint -j $(nproc) --exclude vendor . script:
- parallel-lint -j $(nproc) src tests
phpcs: - twig-lint lint src
<<: *defaults - yaml-lint src
script: phpcs --colors --parallel=$(nproc) --standard=/rules/phpcs.xml .
allow_failure: true
php-cs-fixer: php-cs-fixer:
<<: *defaults <<: *defaults
script: php-cs-fixer fix --dry-run --config=/rules/php-cs-fixer.php script: php-cs-fixer fix --dry-run --verbose
phpcpd: phpcpd:
<<: *defaults <<: *defaults
script: phpcpd --exclude=vendor --fuzzy . script: phpcpd --fuzzy src tests
phpmd: .with-vendors: &with-vendors
<<: *defaults <<: *defaults
script: phpmd . text /rules/phpmd.xml --suffixes=php before_script:
allow_failure: true - 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