File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
+ env :
4
+ global :
5
+ - PHPCS=0
6
+
7
+
3
8
php :
4
9
- 5.4
5
10
- 5.5
@@ -15,13 +20,16 @@ matrix:
15
20
include :
16
21
- php : 5.4
17
22
env : ' COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
23
+ - php : 5.6
24
+ env : PHPCS=1
18
25
19
26
before_script :
20
27
- travis_retry composer self-update
21
28
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
22
29
23
30
script :
24
31
- phpunit --coverage-text --coverage-clover=coverage.clover
32
+ - sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=psr2 ./src ./tests; fi"
25
33
26
34
after_script :
27
35
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
Original file line number Diff line number Diff line change 21
21
},
22
22
"require-dev" : {
23
23
"phpunit/phpunit" : " 4.*" ,
24
- "scrutinizer/ocular" : " ~1.1"
24
+ "scrutinizer/ocular" : " ~1.1" ,
25
+ "squizlabs/php_codesniffer" : " 2.3.*"
25
26
},
26
27
"autoload" : {
27
28
"psr-4" : {
You can’t perform that action at this time.
0 commit comments