[task/code-sniffer] Require code sniffer to pass on Travis CI.

PHPBB3-11980
This commit is contained in:
Andreas Fischer 2013-10-29 00:44:04 +01:00
parent 59e3c2d16e
commit 6a7db8d51a
2 changed files with 4 additions and 4 deletions

View file

@ -20,11 +20,11 @@ before_script:
- php ../composer.phar install --dev --no-interaction --prefer-source - php ../composer.phar install --dev --no-interaction --prefer-source
- cd .. - cd ..
- sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi" - sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi"
script:
- cd build - cd build
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then ../phpBB/vendor/bin/phing sniff; fi" - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then ../phpBB/vendor/bin/phing sniff; fi"
- cd .. - cd ..
script:
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml - phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
notifications: notifications:

View file

@ -88,14 +88,14 @@
--ignore=phpBB/phpbb/* --ignore=phpBB/phpbb/*
--ignore=phpBB/vendor/* --ignore=phpBB/vendor/*
phpBB" phpBB"
dir="." passthru="true" /> dir="." checkreturn="true" passthru="true" />
<exec command="phpBB/vendor/bin/phpcs <exec command="phpBB/vendor/bin/phpcs
-s -s
--extensions=php --extensions=php
--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="." passthru="true" /> dir="." checkreturn="true" passthru="true" />
</target> </target>
<target name="docs"> <target name="docs">