0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

dev improvements

bump minimum php variant to 7.0
 update phpunit.xml
 switch to shardj/zf1-future rather than unsupported zf1
 try running tests by default in github
This commit is contained in:
David Goodwin 2020-01-31 20:03:38 +00:00
parent 1ad184641d
commit 5f772afe14
2 changed files with 13 additions and 14 deletions

View File

@ -8,7 +8,8 @@
"@check-format",
"@lint",
"@test-fixup",
"@psalm"
"@psalm",
"@test"
],
"check-format": "php-cs-fixer fix --ansi --dry-run --diff",
"format": "php-cs-fixer fix --ansi",
@ -18,7 +19,7 @@
"psalm": "@php ./vendor/bin/psalm --no-cache --show-info=false "
},
"require": {
"php": ">=5.6"
"php": ">=7.0"
},
"require-dev": {
"ext-mysqli": "*",
@ -29,7 +30,7 @@
"php-coveralls/php-coveralls" : "*",
"phpunit/phpunit": "^6|^7",
"vimeo/psalm":"^3.0",
"zendframework/zendframework1": "^1.12.0"
"shardj/zf1-future" : "^1.12"
},
"autoload": {
"files": [

View File

@ -12,22 +12,20 @@
</php>
<logging>
<log type="coverage-html" target="./coverage" charset="UTF-8" highlight="false" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-html" target="./coverage" lowUpperBound="35" highLowerBound="70"/>
</logging>
<filter>
<whitelist>
<directory>./model</directory>
<directory>./public</directory>
<file>./functions.inc.php</file>
<directory>./model/</directory>
<directory>./public/</directory>
<directory>./functions.inc.php/</directory>
<exclude>
<directory>./tests/</directory>
<directory>./vendor/</directory>
<directory>./lib/</directory>
</exclude>
</whitelist>
<blacklist>
<!-- no point in doing coverage for the tests themselves -->
<directory>./tests/</directory>
<!-- we have no control over code from these directories -->
<directory>./vendor/</directory>
<directory>./lib/</directory>
</blacklist>
</filter>
</phpunit>