Merge pull request #222 from keradus/travis-CS

add php-cs-fixer to travis tasks
This commit is contained in:
Justin Hileman
2014-08-16 19:49:33 -07:00
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
$config = new Symfony\CS\Config\Config(); $config = new Symfony\CS\Config\Config();
$config->getFinder()->exclude('bin'); $config->getFinder()->in(__DIR__)->exclude('bin');
return $config; return $config;
+8
View File
@@ -1,4 +1,12 @@
language: php language: php
before_script:
- curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o php-cs-fixer.phar
script:
- phpunit
- if [[ `php -r "echo version_compare(PHP_VERSION, '5.3.6', '>=');"` ]]; then php php-cs-fixer.phar --dry-run -v fix .; fi
php: php:
- 5.2 - 5.2
- 5.3 - 5.3