Skip to content

Commit 5443d44

Browse files
authored
Use separate builds for different suites (#8)
* Use separate builds for different suites * Adding Nyholm/psr7 to the test suite * syntax errors
1 parent c99b3cc commit 5443d44

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ php:
1212
env:
1313
global:
1414
- TEST_COMMAND="./vendor/bin/phpunit"
15+
matrix:
16+
- SUITE="Guzzle"
17+
- SUITE="Zend"
18+
- SUITE="Slim"
19+
- SUITE="Nyholm"
1520

1621
branches:
1722
except:
1823
- /^analysis-.*$/
24+
- /^patch-.*$/
1925

2026
before_install:
2127
- iphpenv config-rm xdebug.ini || true
@@ -24,6 +30,4 @@ install:
2430
- travis_retry composer update --prefer-dist --no-interaction
2531

2632
script:
27-
- $TEST_COMMAND --testsuite Guzzle
28-
- $TEST_COMMAND --testsuite Zend
29-
- $TEST_COMMAND --testsuite Slim
33+
- $TEST_COMMAND --testsuite $SUITE

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"phpunit/phpunit": "^4.8 || ^5.0",
1919
"zendframework/zend-diactoros": "^1.0",
2020
"guzzlehttp/psr7": "^1.0",
21-
"slim/slim": "^3.0"
21+
"slim/slim": "^3.0",
22+
"nyholm/psr7": "dev-master"
2223
},
2324
"autoload": {
2425
"psr-4": {

phpunit.xml.dist

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
<testsuite name="Zend">
2424
<directory>./tests/Zend/</directory>
2525
</testsuite>
26+
27+
<testsuite name="Nyholm">
28+
<directory>./vendor/nyholm/psr7/tests/Integration/</directory>
29+
</testsuite>
2630
</testsuites>
2731

2832
<filter>
@@ -34,9 +38,4 @@
3438
</exclude>
3539
</whitelist>
3640
</filter>
37-
38-
<php>
39-
<const name="URI_FACTORY" value=""/>
40-
<const name="STREAM_FACTORY" value=""/>
41-
</php>
4241
</phpunit>

0 commit comments

Comments
 (0)