Permalink
Browse files

add phpcs to build.

phpcs is in require-dev, and a build task has been added to
crash out on style 'errors' but ignore warnings.
  • Loading branch information...
mike42 committed Mar 28, 2016
1 parent deb81e9 commit bd9d5b4257f012052e4f2d75fc3ec9f9fc208da5
Showing with 191 additions and 114 deletions.
  1. +3 −1 .travis.yml
  2. +2 −1 composer.json
  3. +186 −112 composer.lock
View
@@ -13,7 +13,9 @@ matrix:
allow_failures:
- php: nightly
script: phpunit --configuration test/phpunit.xml --coverage-text
script:
- php vendor/bin/phpcs --standard=psr2 test/ -n
- phpunit --configuration test/phpunit.xml --coverage-text
install:
- composer install
View
@@ -31,7 +31,8 @@
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "4.5.*"
"phpunit/phpunit": "4.5.*",
"squizlabs/php_codesniffer": "2.*"
},
"autoload": {
"psr-4": {
Oops, something went wrong.

0 comments on commit bd9d5b4

Please sign in to comment.