mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 17:41:50 +01:00
Phing > remove old and unused tools
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Common and useful classes, methods, exceptions etc.
|
Common and useful classes, methods, exceptions etc.
|
||||||
|
|
||||||
|
# 1.0.2
|
||||||
|
|
||||||
|
1. Phing > remove old and unused tools
|
||||||
|
|
||||||
# 1.0.1
|
# 1.0.1
|
||||||
|
|
||||||
1. Regex > make compatible with PHP 7.3 Tests > Regex > fix "preg_match(): Compilation failed: invalid range in
|
1. Regex > make compatible with PHP 7.3 Tests > Regex > fix "preg_match(): Compilation failed: invalid range in
|
||||||
|
|||||||
@@ -22,9 +22,6 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^2.14",
|
"friendsofphp/php-cs-fixer": "^2.14",
|
||||||
"pdepend/pdepend": "^2.5",
|
|
||||||
"phploc/phploc": "^5.0",
|
|
||||||
"phpmd/phpmd": "^2.6",
|
|
||||||
"phpunit/phpunit": "^8.0",
|
"phpunit/phpunit": "^8.0",
|
||||||
"sebastian/phpcpd": "^4.1",
|
"sebastian/phpcpd": "^4.1",
|
||||||
"squizlabs/php_codesniffer": " ^2.9"
|
"squizlabs/php_codesniffer": " ^2.9"
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ dir.tests = ${project.basedir}/tests
|
|||||||
#
|
#
|
||||||
dir.build = ${project.basedir}/build
|
dir.build = ${project.basedir}/build
|
||||||
dir.reports = ${dir.build}/reports
|
dir.reports = ${dir.build}/reports
|
||||||
dir.reports.pdepend = ${dir.reports}/pdepend
|
|
||||||
dir.reports.coverage = ${dir.reports}/phpunit_coverage
|
dir.reports.coverage = ${dir.reports}/phpunit_coverage
|
||||||
|
|
||||||
# Data directories
|
# Data directories
|
||||||
|
|||||||
@@ -43,10 +43,7 @@
|
|||||||
<!-- Check target -->
|
<!-- Check target -->
|
||||||
<target name="build:check"
|
<target name="build:check"
|
||||||
depends="check:cs,
|
depends="check:cs,
|
||||||
check:md,
|
check:cpd"
|
||||||
check:cpd,
|
|
||||||
check:depend,
|
|
||||||
check:loc"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Test target -->
|
<!-- Test target -->
|
||||||
@@ -72,32 +69,6 @@
|
|||||||
</phpcpd>
|
</phpcpd>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Mess detector -->
|
|
||||||
<target name="check:md" depends="build:prepare">
|
|
||||||
<phpmd rulesets="codesize,controversial,design,naming,unusedcode">
|
|
||||||
<fileset refid="sourcecode"/>
|
|
||||||
<formatter type="html" outfile="${dir.reports}/phpmd.html"/>
|
|
||||||
<formatter type="text" outfile="${dir.reports}/phpmd.txt"/>
|
|
||||||
</phpmd>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- Code dependency -->
|
|
||||||
<target name="check:depend" depends="build:prepare">
|
|
||||||
<phpdepend>
|
|
||||||
<fileset refid="sourcecode"/>
|
|
||||||
<logger type="jdepend-xml" outfile="${dir.reports.pdepend}/jdepend.xml"/>
|
|
||||||
<logger type="jdepend-chart" outfile="${dir.reports.pdepend}/dependencies.svg"/>
|
|
||||||
<logger type="overview-pyramid" outfile="${dir.reports.pdepend}/overview-pyramid.svg"/>
|
|
||||||
</phpdepend>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- Measure the size and analyzing the structure of a project -->
|
|
||||||
<target name="check:loc" depends="build:prepare">
|
|
||||||
<phploc reportType="txt" reportName="phploc" reportDirectory="${dir.reports}">
|
|
||||||
<fileset refid="sourcecode"/>
|
|
||||||
</phploc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- PHPUnit tests -->
|
<!-- PHPUnit tests -->
|
||||||
<target name="test:phpunit" depends="build:prepare">
|
<target name="test:phpunit" depends="build:prepare">
|
||||||
<exec command="${tests.phpunit.command}" passthru="true"/>
|
<exec command="${tests.phpunit.command}" passthru="true"/>
|
||||||
@@ -116,7 +87,6 @@
|
|||||||
<!-- Project build prepare -->
|
<!-- Project build prepare -->
|
||||||
<target name="build:prepare" depends="build:clean">
|
<target name="build:prepare" depends="build:clean">
|
||||||
<mkdir dir="${dir.reports}"/>
|
<mkdir dir="${dir.reports}"/>
|
||||||
<mkdir dir="${dir.reports.pdepend}"/>
|
|
||||||
<mkdir dir="${dir.reports.coverage}"/>
|
<mkdir dir="${dir.reports.coverage}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user