File tree Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Original file line number Diff line number Diff line change
1
+ tools :
2
+ php_code_sniffer :
3
+ config :
4
+ standard : PSR2
5
+ external_code_coverage :
6
+ timeout : 3600
7
+
1
8
filter :
2
9
paths :
3
10
- ' src/*'
4
11
- ' tests/*'
5
12
6
- tools :
7
- php_code_sniffer :
8
- config :
9
- standard : PSR2
13
+ build_failure_conditions :
14
+ - ' issues.label("coding-style").exists'
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ matrix:
14
14
- php : 7.1
15
15
env :
16
16
- deps=low
17
+ - php : 7.2
18
+ - php : 7.2
19
+ env :
20
+ - deps=low
17
21
- php : nightly
18
22
- php : nightly
19
23
env :
@@ -27,14 +31,17 @@ matrix:
27
31
fast_finish : true
28
32
29
33
before_install :
30
- - if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then echo hhvm.php7.all=1 >> /etc/hhvm/php.ini; fi
34
+ - if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then echo hhvm.php7.all=1 >> /etc/hhvm/php.ini; fi;
31
35
- travis_retry composer self-update
32
36
33
37
install :
34
- - travis_retry composer require --dev --no-update squizlabs/php_codesniffer
35
38
- if [ "$deps" != low ]; then travis_retry composer update --no-interaction --prefer-dist; fi;
36
39
- if [ "$deps" == low ]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest; fi;
37
40
38
41
script :
39
- - vendor/bin/phpcs
40
- - vendor/bin/phpunit --coverage-text --exclude-group integration
42
+ - if [[ "$TRAVIS_PHP_VERSION" == '7.1' && "$deps" != low ]]; then vendor/bin/phpunit --coverage-clover=coverage.clover --exclude-group integration; fi;
43
+ - if [[ "$TRAVIS_PHP_VERSION" != '7.1' || "$deps" == low ]]; then vendor/bin/phpunit --exclude-group integration; fi;
44
+
45
+ after_script :
46
+ - if [[ "$TRAVIS_PHP_VERSION" == '7.1' && "$deps" != low ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi;
47
+ - if [[ "$TRAVIS_PHP_VERSION" == '7.1' && "$deps" != low ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;
Original file line number Diff line number Diff line change 3
3
## NOTICE: This branch is under active development. For the stable release please use the [ 5.x branch] ( https://github.com/facebook/php-graph-sdk/tree/5.x ) .
4
4
5
5
[ ![ Build Status] ( https://img.shields.io/travis/facebook/php-graph-sdk/master.svg )] ( https://travis-ci.org/facebook/php-graph-sdk )
6
- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/facebook/facebook-php-sdk-v4/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/facebook/facebook-php-sdk-v4/?branch=master )
6
+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/facebook/php-graph-sdk/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/facebook/php-graph-sdk/?branch=master )
7
+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/facebook/php-graph-sdk/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/facebook/php-graph-sdk/?branch=master )
7
8
[ ![ Development Version] ( http://img.shields.io/badge/Development%20Version-v6.0-orange.svg )] ( https://packagist.org/packages/facebook/graph-sdk )
8
9
9
10
Original file line number Diff line number Diff line change 14
14
</testsuites >
15
15
<filter >
16
16
<whitelist >
17
- <directory suffix =" .php" >./src/Facebook </directory >
17
+ <directory suffix =" .php" >./src</directory >
18
18
</whitelist >
19
19
</filter >
20
20
</phpunit >
You can’t perform that action at this time.
0 commit comments