diff --git a/.travis.yml b/.travis.yml index 26dea44d..f979e558 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,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 @@ + + + + + + + + + + + + + + + diff --git a/composer.json b/composer.json index 14e01f6a..bd21bbd1 100644 --- a/composer.json +++ b/composer.json @@ -49,6 +49,7 @@ "php": ">=5.3.0" }, "require-dev": { + "phing/phing": "2.7.*", "phpunit/phpunit": "4.0.*", "squizlabs/php_codesniffer": "1.*" }, diff --git a/composer.lock b/composer.lock index 94aa5131..f7485126 100644 --- a/composer.lock +++ b/composer.lock @@ -3,11 +3,63 @@ "This file locks the dependencies of your project to a known state", "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" ], - "hash": "47815ecdbeb5586e01973e3e961c4b14", + "hash": "9550e007a60e2baceebf1185d508dd00", "packages": [ ], "packages-dev": [ + { + "name": "phing/phing", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/phingofficial/phing.git", + "reference": "bd2689790c620ac745b3ad29765c641a0dd5d007" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phingofficial/phing/zipball/bd2689790c620ac745b3ad29765c641a0dd5d007", + "reference": "bd2689790c620ac745b3ad29765c641a0dd5d007", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "bin": [ + "bin/phing" + ], + "type": "library", + "autoload": { + "classmap": [ + "classes/phing/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "classes" + ], + "license": [ + "LGPL3" + ], + "authors": [ + { + "name": "Michiel Rook", + "email": "mrook@php.net" + }, + { + "name": "Phing Community", + "homepage": "http://www.phing.info/trac/wiki/Development/Contributors" + } + ], + "description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.", + "homepage": "http://www.phing.info/", + "keywords": [ + "build", + "task", + "tool" + ], + "time": "2014-02-13 13:17:59" + }, { "name": "phpunit/php-code-coverage", "version": "2.0.5",