File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 9
9
php :
10
10
- 7.0
11
11
- 7.1
12
- - hhvm
13
12
14
13
env :
15
14
global :
@@ -22,7 +21,7 @@ branches:
22
21
matrix :
23
22
fast_finish : true
24
23
include :
25
- - php : 5.5
24
+ - php : 7.0
26
25
env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
27
26
28
27
before_install :
@@ -33,6 +32,9 @@ install:
33
32
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
34
33
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
35
34
35
+ before_script :
36
+ - vendor/bin/http_test_server > /dev/null 2>&1 &
37
+
36
38
script :
37
39
- $TEST_COMMAND
38
40
Original file line number Diff line number Diff line change 14
14
}
15
15
},
16
16
"require" : {
17
- "amphp/artax" : " ^3" ,
17
+ "php" : " ^7.0" ,
18
+ "amphp/artax" : " ^3.0" ,
18
19
"php-http/httplug" : " ^1.1" ,
19
20
"php-http/discovery" : " ^1.2"
20
21
},
21
22
"require-dev" : {
23
+ "phpunit/phpunit" : " ^6.0" ,
22
24
"amphp/phpunit-util" : " ^1" ,
23
25
"php-http/client-integration-tests" : " ^0.6.0" ,
24
26
"php-http/message" : " ^1.6"
27
29
"php-http/client-implementation" : " 1.0"
28
30
},
29
31
"scripts" : {
30
- "test" : " vendor/bin/phpunit"
32
+ "test" : " vendor/bin/phpunit" ,
33
+ "test-ci" : " vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
31
34
}
32
35
}
Original file line number Diff line number Diff line change 2
2
<phpunit colors =" true" bootstrap =" vendor/autoload.php" >
3
3
<testsuites >
4
4
<testsuite name =" Artax Adapter Test Suite" >
5
- <directory >test </directory >
5
+ <directory >tests/ </directory >
6
6
</testsuite >
7
7
</testsuites >
8
8
<php >
16
16
<listeners >
17
17
<listener class =" Amp\PHPUnit\LoopReset" />
18
18
</listeners >
19
- </phpunit >
19
+ </phpunit >
You can’t perform that action at this time.
0 commit comments