From 4a064a050610f13938337a8aa7b5a78ac52e534b Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sat, 12 Apr 2014 07:47:53 +0200 Subject: [PATCH] Run Code Sniffer via phing. --- .travis.yml | 3 +-- build/build.xml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 build/build.xml diff --git a/.travis.yml b/.travis.yml index 822dae91..c6f56a9b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,7 @@ before_script: - sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.2' ]; then travis/setup-composer.sh; fi" script: - - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset.xml phpseclib/; fi" - - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset-tests.xml tests/; fi" + - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phing -f build/build.xml sniff; fi" - travis/run-phpunit.sh after_success: diff --git a/build/build.xml b/build/build.xml new file mode 100644 index 00000000..b29f20e5 --- /dev/null +++ b/build/build.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + +