File tree Expand file tree Collapse file tree 6 files changed +57
-8
lines changed Expand file tree Collapse file tree 6 files changed +57
-8
lines changed Original file line number Diff line number Diff line change
1
+ version : " 2"
2
+ plugins :
3
+ duplication :
4
+ enabled : true
5
+ config :
6
+ languages :
7
+ - php
8
+ fixme :
9
+ enabled : true
10
+ phpcodesniffer :
11
+ enabled : true
12
+ config :
13
+ standard : " PSR2"
14
+ phan :
15
+ enabled : true
16
+ config :
17
+ file_extensions : " php"
18
+ ignore-undeclared : true
19
+ sonar-php :
20
+ enabled : true
21
+ exclude_patterns :
22
+ - tests/
23
+ - .phan/
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ config = [
4
+ 'target_php_version ' => null ,
5
+ 'directory_list ' => [
6
+ 'src ' ,
7
+ ],
8
+ 'exclude_analysis_directory_list ' => [],
9
+ ];
10
+
11
+ // workaround for phan on codeclimate
12
+ if (file_exists (dirname (__DIR__ ) . '/vendor/psr ' )) {
13
+ $ config ['directory_list ' ] [] = 'vendor/psr ' ;
14
+ $ config ['exclude_analysis_directory_list ' ] [] = 'vendor/ ' ;
15
+ }
16
+
17
+ return $ config ;
Original file line number Diff line number Diff line change
1
+ env :
2
+ global :
3
+ - CC_TEST_REPORTER_ID=4796fc8abec9f60231051df2c2523b62c6f650137be5458aada65a7bbc79e6aa
1
4
language : php
2
5
php :
3
6
- ' 7.0'
4
7
- ' 7.1'
5
8
- ' 7.2'
6
-
7
- before_script : composer install
8
- script : phpunit
9
+ before_script :
10
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11
+ - chmod +x ./cc-test-reporter
12
+ - if [ $(phpenv version-name) = "7.2" ]; then ./cc-test-reporter before-build; fi
13
+ install :
14
+ - composer install
15
+ script :
16
+ - phpunit --coverage-text --coverage-clover clover.xml
17
+ after_script :
18
+ - if [ $(phpenv version-name) = "7.2" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
Original file line number Diff line number Diff line change 1
1
# PHP Middleware Stack
2
2
[ ![ Build Status] ( https://travis-ci.org/idealo/php-middleware-stack.svg?branch=master )] ( https://travis-ci.org/idealo/php-middleware-stack )
3
+ [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/254d91c39447f58c7d44/maintainability )] ( https://codeclimate.com/github/idealo/php-middleware-stack/maintainability )
4
+ [ ![ Test Coverage] ( https://api.codeclimate.com/v1/badges/254d91c39447f58c7d44/test_coverage )] ( https://codeclimate.com/github/idealo/php-middleware-stack/test_coverage )
3
5
4
6
This is an implementation of [ PSR-15] ( https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md ) using the proposed Interface packages [ psr/http-server-middleware] ( https://github.com/php-fig/http-server-middleware ) and [ psr/http-server-handler] ( https://github.com/php-fig/http-server-handler ) for PHP7+ runtime environment.
5
7
Original file line number Diff line number Diff line change 3
3
xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/4.5/phpunit.xsd"
4
4
backupGlobals =" true"
5
5
backupStaticAttributes =" false"
6
- bootstrap =" tests/bootstrap .php"
6
+ bootstrap =" vendor/autoload .php"
7
7
cacheTokens =" false"
8
8
colors =" true"
9
9
verbose =" true" >
10
10
<testsuites >
11
- <testsuite name =" Middleware Stack Test Coverage " >
11
+ <testsuite name =" unit " >
12
12
<directory >tests</directory >
13
13
</testsuite >
14
14
</testsuites >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments