From fcaff09dca3eaf2be44ae272260e1b83de1d60ce Mon Sep 17 00:00:00 2001 From: Perreal Guillaume <guillaume.perreal@irstea.fr> Date: Mon, 19 Aug 2019 17:42:32 +0200 Subject: [PATCH] CI: configuration des outils des CI pour ignorer certaines parties des fixtures. --- .php_cs | 4 +++- composer.json | 9 ++++++--- phpmd-ruleset.xml | 2 ++ phpunit.xml.dist | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.php_cs b/.php_cs index 57086e1..c656cb8 100644 --- a/.php_cs +++ b/.php_cs @@ -1,4 +1,6 @@ -<?php +<?php declare(strict_types=1); + +require __DIR__ . '/vendor/autoload.php'; $finder = PhpCsFixer\Finder::create() ->files() diff --git a/composer.json b/composer.json index 5c056aa..49c2435 100644 --- a/composer.json +++ b/composer.json @@ -38,16 +38,19 @@ "require-dev": { "doctrine/doctrine-bundle": "^1.11", "doctrine/orm": "^2.6", + "irstea/composer-require-checker-shim": "^2.0", "irstea/php-cs-fixer-config": "^1.0", + "irstea/php-cs-fixer-shim": "^2.15", + "irstea/phpcpd-shim": "^4.1", + "irstea/phploc-shim": "^5.0", "irstea/phpmd-config": "^1.0.0", + "irstea/phpmd-shim": "^2.7", "irstea/phpstan-config": "^1.0", "jakub-onderka/php-parallel-lint": "^1.0", - "maglnet/composer-require-checker": "^1.0", - "phploc/phploc": "^4.0", + "phpstan/phpstan-shim": "^0.11.15", "phpunit/phpunit": "^7.3", "ramsey/uuid": "^3.8", "ramsey/uuid-doctrine": "^1.5", - "sebastian/phpcpd": "^4.0", "symfony/framework-bundle": "^4.3", "symfony/yaml": "^4.3" }, diff --git a/phpmd-ruleset.xml b/phpmd-ruleset.xml index 64d0686..ef57fba 100644 --- a/phpmd-ruleset.xml +++ b/phpmd-ruleset.xml @@ -6,4 +6,6 @@ <rule ref="vendor/irstea/phpmd-config/loose.xml"/> + <exclude-pattern>tests/Fixtures/var/**</exclude-pattern> + </ruleset> diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 306b084..fc29aec 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,6 +9,7 @@ <testsuites> <testsuite name="Project Test Suite"> <directory>tests</directory> + <exclude>tests/Fixtures</exclude> </testsuite> </testsuites> -- GitLab