Skip to content

Commit 3d4e1b7

Browse files
Various updates
1 parent 80d4195 commit 3d4e1b7

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-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: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
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"
1615
},
1716
"require-dev": {
18-
"codeclimate/php-test-reporter": "dev-master"
17+
"phpunit/phpunit": "^6.0 | ^7.0"
1918
},
2019
"autoload": {
2120
"psr-4": {
@@ -27,5 +26,8 @@
2726
"vendor/phpunit/phpunit/src/Framework/Assert/Functions.php",
2827
"src/Functions.php"
2928
]
29+
},
30+
"config": {
31+
"sort-packages": true
3032
}
3133
}

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)