Add PHPCS to Travis
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -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 .
|
||||||
|
|||||||
Reference in New Issue
Block a user