Add PHPCS to Travis

This commit is contained in:
Ben Word
2015-01-24 00:25:59 -06:00
parent 78fd50212d
commit 33fe490cb0

View File

@@ -2,12 +2,17 @@ sudo: false
language: php language: php
cache: npm cache: npm
php: php:
- 5.6 - '5.6'
- 5.5 - '5.5'
- 5.4 - '5.4'
before_install: before_install:
- npm install -g bower - npm install -g bower
- npm install - npm install
- pyrus install pear/PHP_CodeSniffer
- phpenv rehash
script: script:
- npm run build - npm run build
- npm run jshint - npm run jshint
- phpcs --standard=ruleset.xml --extensions=php -n -s .