Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 46dfaa9

Browse files
committed
Travis CI : Support for PSR-2 test
1 parent 547d2bd commit 46dfaa9

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.travis.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,21 @@ php:
1010
- hhvm
1111

1212
matrix:
13-
allow_failures:
14-
- php: hhvm
13+
allow_failures:
14+
- php: hhvm
15+
16+
before_script:
17+
## Packages
18+
- sudo apt-get -qq update > /dev/null
19+
## Composer
20+
- composer self-update
21+
- composer install --prefer-source --dev
1522

1623
script:
17-
- phpunit -c ./unitTests/
24+
## PHP_CodeSniffer
25+
- ./vendor/bin/phpcs Classes/ unitTests/ --standard=PSR2 -n --ignore=Classes/PHPExcel/Shared/PCLZip
26+
## PHPUnit
27+
- phpunit -c ./unitTests/
1828

1929
notifications:
2030
email: false

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"name": "Franck Lefevre",
18-
"homepage": "http://blog.rootslabs.net"
18+
"homepage": "http://rootslabs.net"
1919
},
2020
{
2121
"name": "Erik Tilt"
@@ -26,6 +26,9 @@
2626
"ext-xml": "*",
2727
"ext-xmlwriter": "*"
2828
},
29+
"require-dev": {
30+
"squizlabs/php_codesniffer": "1.*"
31+
},
2932
"recommend": {
3033
"ext-zip": "*",
3134
"ext-gd2": "*"

0 commit comments

Comments
 (0)