File tree Expand file tree Collapse file tree 6 files changed +13
-27
lines changed Expand file tree Collapse file tree 6 files changed +13
-27
lines changed Original file line number Diff line number Diff line change 3
3
vendor /
4
4
node_modules /
5
5
.env
6
+ phpunit.xml
Original file line number Diff line number Diff line change 2
2
language : php
3
3
4
4
php :
5
- - ' 5.6 '
5
+ - ' 7.2 '
6
6
7
7
before_script :
8
- - mkdir -p build/logs
9
- - composer install --no-interaction
8
+ - travis_retry composer self-update
9
+ - travis_retry composer install --no-interaction --prefer-source --dev
10
10
11
11
script :
12
- - vendor/bin/phpunit
13
- --configuration phpunit.xml
14
- --bootstrap ./vendor/autoload.php
15
- --coverage-clover build/logs/clover.xml
12
+ - vendor/bin/phpunit --coverage-clover=coverage.xml
16
13
17
14
after_success :
18
- - ./vendor/bin/test-reporter
19
-
20
- notifications :
21
- email : " bianco@javanile.org"
15
+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1
1
# ipqueue
2
-
2
+ [ ![ StyleCI ] ( https://github.styleci.io/repos/158704688/shield?branch=master )] ( https://github.styleci.io/repos/158704688 )
3
3
[ ![ Build Status] ( https://travis-ci.org/javanile/ipqueue.svg?branch=master )] ( https://travis-ci.org/javanile/ipqueue )
4
4
5
5
Original file line number Diff line number Diff line change 2
2
/**
3
3
* javanile/ipqueue (v0.0.1).
4
4
*/
5
- define ('IPQUEUE_HOST ' , 'www.ipqueue.com ' );
6
5
7
- if ($ _SERVER ['HTTP_HOST ' ] == IPQUEUE_HOST ) {
6
+ if (preg_match ( ' /^www\. ' , $ _SERVER ['HTTP_HOST ' ]) ) {
8
7
return require_once __DIR__ .'/public/index.php ' ;
9
8
}
10
9
10
+ use Javanile \IpQueue \IpQueueApp ;
11
+
11
12
$ app = new IpQueueApp (getallheaders (), $ _SERVER );
12
13
13
14
echo $ app ->run ();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit >
3
+ <logging >
4
+ <log type =" coverage-clover" target =" clover.xml" />
5
+ </logging >
3
6
<filter >
4
7
<whitelist >
5
8
<directory >./src</directory >
You can’t perform that action at this time.
0 commit comments