This repository was archived by the owner on Mar 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +1657
-467
lines changed Expand file tree Collapse file tree 9 files changed +1657
-467
lines changed Original file line number Diff line number Diff line change 1- vendor /
1+ /vendor
2+ /build
3+
4+ composer.phar
25.php_cs.cache
3- build /
6+ .DS_Store
7+ Thumbs.db
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ $config->getFinder()
77 ->in (__DIR__ )
88 ->exclude ('build ' )
99 ->exclude ('vendor ' )
10- ->exclude ('tests ' )
1110 ->name ('*.php ' )
1211 ->ignoreDotFiles (true )
1312 ->ignoreVCS (true );
Original file line number Diff line number Diff line change 11language : php
22
3- sudo : false
4-
53php :
6- - 7.0
74 - 7.1
85
6+ env :
7+ global :
8+ - SEND_COVERAGE=false
9+ - PHPSTAN=false
10+
911matrix :
10- allow_failures :
11- - php : nightly
1212 fast_finish : true
13+ include :
14+ - php : 7.1
15+ env : SEND_COVERAGE=true
16+ # phpstan
17+ - php : 7.1
18+ env : PHPSTAN=true
19+
20+ sudo : false
1321
1422cache :
1523 directories :
1624 - $HOME/.composer/cache
1725 - $HOME/.php-cs-fixer
1826
1927before_install :
20- - composer self-update
2128 - composer validate
2229
2330install :
@@ -28,9 +35,9 @@ before_script:
2835
2936script :
3037 - mkdir -p build/logs
31- - vendor/bin/phpunit -c phpunit.xml.dist --verbose
32- - vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --diff --dry-run
38+ - if [[ "$PHPSTAN" = false && "$SEND_COVERAGE" = true ]]; then ./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run; fi
39+ - if [[ "$PHPSTAN" = false && "$SEND_COVERAGE" = true ]]; then ./vendor/bin/phpunit -c phpunit.xml.dist --verbose --coverage-clover=coverage.xml; fi
40+ - if [[ "$PHPSTAN" = true && "$SEND_COVERAGE" = false ]]; then ./vendor/bin/phpstan analyse -c phpstan.neon -l 6 src; fi
3341
34- after_script :
35- - wget https://scrutinizer-ci.com/ocular.phar
36- - php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.clover
42+ after_success :
43+ - if [[ "$PHPSTAN" = false && "$SEND_COVERAGE" = true ]]; then bash <(curl -s https://codecov.io/bash); fi
Original file line number Diff line number Diff line change 2424 }
2525 ],
2626 "require" : {
27- "php" : " ^7.0 " ,
28- "friendsofphp/php-cs-fixer" : " ^2.0 "
27+ "php" : " ^7.1 " ,
28+ "friendsofphp/php-cs-fixer" : " ^2.3.2 "
2929 },
3030 "require-dev" : {
31- "phpunit/phpunit" : " ^5.1"
31+ "phpunit/phpunit" : " ^6.1" ,
32+ "phpstan/phpstan" : " ^0.7"
3233 },
3334 "autoload" : {
3435 "psr-4" : {
3738 },
3839 "autoload-dev" : {
3940 "psr-4" : {
40- "Narrowspark\\ CS\\ Config\\ Test\\ " : " test "
41+ "Narrowspark\\ CS\\ Config\\ Test\\ " : " tests "
4142 }
4243 },
4344 "config" : {
You can’t perform that action at this time.
0 commit comments