Skip to content

Commit 8ec83fc

Browse files
Merge branch 'martinssipenko-v2'
2 parents 80d4195 + c18b91d commit 8ec83fc

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
language: php
22
sudo: false
33
php:
4+
- 7.3
5+
- 7.2
46
- 7.1
5-
- 7.0
67
install:
7-
- composer install --prefer-dist
8+
- composer install --optimize-autoloader --prefer-dist --no-interaction
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+
- ./cc-test-reporter before-build
813
script:
914
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
10-
after_success:
11-
- vendor/bin/test-reporter
15+
after_script:
16+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

composer.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
}
1010
],
1111
"require": {
12-
"flow/jsonpath": "^0.3.1",
13-
"phpunit/phpunit": ">=6.0",
14-
"justinrainbow/json-schema": "^5.0",
15-
"php": ">=7.0"
12+
"php": ">=7.0",
13+
"flow/jsonpath": "^0.4.0",
14+
"justinrainbow/json-schema": "^5.0"
15+
},
16+
"conflict": {
17+
"phpunit/phpunit": "<6.0 || >= 8.0"
1618
},
1719
"require-dev": {
18-
"codeclimate/php-test-reporter": "dev-master"
20+
"phpunit/phpunit": "^6.0 | ^7.0"
1921
},
2022
"autoload": {
2123
"psr-4": {
@@ -27,5 +29,8 @@
2729
"vendor/phpunit/phpunit/src/Framework/Assert/Functions.php",
2830
"src/Functions.php"
2931
]
32+
},
33+
"config": {
34+
"sort-packages": true
3035
}
3136
}

phpunit.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
9-
mapTestClassNameToCoveredClassName="false"
109
timeoutForSmallTests="1"
1110
timeoutForMediumTests="10"
1211
timeoutForLargeTests="60">
@@ -21,11 +20,11 @@
2120
<logging>
2221
<log type="coverage-html" target="build/coverage" lowUpperBound="35"
2322
highLowerBound="70"/>
24-
<log type="junit" target="build/phpunit" logIncompleteSkipped="false"/>
23+
<log type="junit" target="build/phpunit"/>
2524
</logging>
2625
<filter>
2726
<whitelist processUncoveredFilesFromWhitelist="true">
2827
<directory suffix=".php">src</directory>
2928
</whitelist>
3029
</filter>
31-
</phpunit>
30+
</phpunit>

0 commit comments

Comments
 (0)