Travis CI : Support for PSR-2 test
This commit is contained in:
parent
547d2bd3b2
commit
46dfaa9f8a
16
.travis.yml
16
.travis.yml
|
@ -10,11 +10,21 @@ php:
|
||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
## Packages
|
||||||
|
- sudo apt-get -qq update > /dev/null
|
||||||
|
## Composer
|
||||||
|
- composer self-update
|
||||||
|
- composer install --prefer-source --dev
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpunit -c ./unitTests/
|
## PHP_CodeSniffer
|
||||||
|
- ./vendor/bin/phpcs Classes/ unitTests/ --standard=PSR2 -n --ignore=Classes/PHPExcel/Shared/PCLZip
|
||||||
|
## PHPUnit
|
||||||
|
- phpunit -c ./unitTests/
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Franck Lefevre",
|
"name": "Franck Lefevre",
|
||||||
"homepage": "http://blog.rootslabs.net"
|
"homepage": "http://rootslabs.net"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Erik Tilt"
|
"name": "Erik Tilt"
|
||||||
|
@ -26,6 +26,9 @@
|
||||||
"ext-xml": "*",
|
"ext-xml": "*",
|
||||||
"ext-xmlwriter": "*"
|
"ext-xmlwriter": "*"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"squizlabs/php_codesniffer": "1.*"
|
||||||
|
},
|
||||||
"recommend": {
|
"recommend": {
|
||||||
"ext-zip": "*",
|
"ext-zip": "*",
|
||||||
"ext-gd2": "*"
|
"ext-gd2": "*"
|
||||||
|
|
Loading…
Reference in New Issue