Skip to content

Commit

Permalink
Merge pull request #57 from geekcom/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
geekcom authored Jan 16, 2020
2 parents 581364f + 09a651e commit f24806e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ composer.phar
composer.lock
.DS_Store
.idea/
/tests/log/
*.cache
19 changes: 17 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
"php": "^7.2"
},
"require-dev": {
"phpunit/phpunit": "^8.3",
"phpunit/phpunit": "^8.4",
"orchestra/testbench": "^4.0",
"symplify/changelog-linker": "^6.1"
"symplify/changelog-linker": "^6.1",
"php-coveralls/php-coveralls": "^2.2",
"squizlabs/php_codesniffer": "*",
"phpstan/phpstan": "^0.12.5"
},
"autoload": {
"psr-4": {
Expand All @@ -32,5 +35,17 @@
"geekcom\\ValidatorDocs\\ValidatorProvider"
]
}
},
"scripts": {
"phpcs": "phpcs --standard=PSR12 -n src",
"phpcbf" : "phpcbf --standard=PSR12 -n src",
"unit": "phpunit --coverage-clover ./tests/log/clover.xml --colors=always",
"unit-html": "php -d phar.readonly=0 vendor/bin/phpunit --coverage-html ./tests/log/ --colors=always",
"phpstan": "phpstan analyse src --level 8",
"test": [
"@phpcs",
"@unit",
"@phpstan"
]
}
}
16 changes: 13 additions & 3 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?xml version="1.0"?>
<ruleset>
<file>./</file>
<exclude-pattern>./vendor/*</exclude-pattern>
<rule ref="PSR1" />
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>

<arg value="p"/>

<exclude-pattern type="relative">^/tests/*</exclude-pattern>

<file>src</file>

<rule ref="PSR12"/>
</ruleset>
10 changes: 10 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory>./src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./tests/log/report"
lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="./tests/log/clover.xml"/>
</logging>
</phpunit>

0 comments on commit f24806e

Please sign in to comment.