added CodeSniffer's syntax check as part of travis tests

This commit is contained in:
behrooz shabani (everplays) 2013-11-08 00:13:55 +03:30
parent 795792791e
commit df27950e56
2 changed files with 3 additions and 2 deletions

View File

@ -3,4 +3,4 @@ php:
- 5.3
- 5.4
before_script: composer install
script: "./vendor/bin/phpunit"
script: "./vendor/bin/phpunit && ./vendor/bin/phpcs -n src/"

View File

@ -20,7 +20,8 @@
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
"phpunit/phpunit": "3.7.*",
"squizlabs/php_codesniffer": "1.*"
},
"autoload": {
"psr-0": {