Skip to content

Commit

Permalink
Merge pull request #2 from polderknowledge/feature/php_compat
Browse files Browse the repository at this point in the history
Feature/php compat
  • Loading branch information
jaapio authored Jan 10, 2018
2 parents 413ba5a + 8a1d18d commit 21ddef4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,14 @@
<phingcall target="test.checksyntax" />
<phingcall target="test.phpunit" />
<phingcall target="codestyle.checkstyle" />
<phingcall target="security-check" />
</target>

<target name="build-ci" description="run full build chain including reports">
<phingcall target="clean" />
<phingcall target="prepare" />
<phingcall target="test.checksyntax" />
<phingcall target="test.phpunit" />
<phingcall target="codestyle.checkstyle" />
<phingcall target="security-check" />
<phingcall target="codestyle.checkstyle" />
<phingcall target="phpcpd" />
<phingcall target="phploc" />
<phingcall target="phpmd" />
Expand All @@ -117,4 +115,16 @@
</else>
</if>
</target>

<target name="compatibility:check" description="check the php compatiblity ">
<phpcodesniffer
standard="vendor/wimg/php-compatibility/PHPCompatibility"
format="summary" skipversioncheck="true"
showSniffs="true" showWarnings="true"
haltonerror="true">
<fileset refid="phpcompat"/>
<formatter type="full" usefile="false"/>
<formatter type="checkstyle" outfile="${project.build}/checkstyle-codesniffer.xml"/>
</phpcodesniffer>
</target>
</project>
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"require": {
"php": "~5.5|~7.0",
"bitexpert/phing-securitychecker": "^0.2.1",
"polderknowledge/coding-standards": "^1.1"
"polderknowledge/coding-standards": "^1.1",
"wimg/php-compatibility": "^8.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 21ddef4

Please sign in to comment.