[task/code-sniffer] Do not abort immediately on PHP Code Sniffer failure.

PHPBB3-11980
This commit is contained in:
Andreas Fischer 2013-10-29 23:53:07 +01:00
parent 02e9f6e284
commit 387ed37b31

View file

@ -81,7 +81,7 @@
--standard=build/code_sniffer/ruleset-php-strict.xml --standard=build/code_sniffer/ruleset-php-strict.xml
--ignore=phpBB/phpbb/db/migration/data/v30x/* --ignore=phpBB/phpbb/db/migration/data/v30x/*
phpBB/phpbb" phpBB/phpbb"
dir="." checkreturn="true" passthru="true" /> dir="." returnProperty="retval-php-strict" passthru="true" />
<exec command="phpBB/vendor/bin/phpcs <exec command="phpBB/vendor/bin/phpcs
-s -s
--extensions=php --extensions=php
@ -95,7 +95,16 @@
--ignore=phpBB/phpbb/* --ignore=phpBB/phpbb/*
--ignore=phpBB/vendor/* --ignore=phpBB/vendor/*
phpBB" phpBB"
dir="." checkreturn="true" passthru="true" /> dir="." returnProperty="retval-php-legacy" passthru="true" />
<if>
<or>
<not><equals arg1="${retval-php-strict}" arg2="0" /></not>
<not><equals arg1="${retval-php-legacy}" arg2="0" /></not>
</or>
<then>
<fail message="PHP Code Sniffer failed." />
</then>
</if>
</target> </target>
<target name="docs"> <target name="docs">