mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 22:52:14 +00:00
php-unit updates
This commit is contained in:
+17
-3
@@ -4,8 +4,22 @@ php:
|
||||
- 7.4.2
|
||||
|
||||
before_script:
|
||||
- curl -sS http://getcomposer.org/installer | php
|
||||
- php composer.phar install --prefer-source --no-interaction
|
||||
- mkdir -p _clover
|
||||
- ls -al
|
||||
|
||||
script:
|
||||
- ./vendor/bin/phpunit
|
||||
- ./vendor/phpunit/phpunit/phpunit --configuration ./phpunit.xml ./tests
|
||||
|
||||
install:
|
||||
# Install composer packages
|
||||
- travis_retry composer install --no-interaction --no-suggest
|
||||
# Install coveralls.phar
|
||||
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
|
||||
- chmod +x coveralls.phar
|
||||
- php coveralls.phar --version
|
||||
|
||||
after_success:
|
||||
# Submit coverage report to Coveralls servers, see .coveralls.yml
|
||||
- travis_retry php coveralls.phar -v
|
||||
# Submit coverage report to codecov.io
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
"ext-json": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^6.0",
|
||||
"phpunit/phpunit": "^8.0",
|
||||
"mockery/mockery": "^1"
|
||||
},
|
||||
"autoload": {
|
||||
|
||||
+7
-7
@@ -9,16 +9,16 @@
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
syntaxCheck="false">
|
||||
stopOnFailure="false">
|
||||
<testsuites>
|
||||
<testsuite name="SimpleRouter Test Suite">
|
||||
<directory>tests/Pecee/SimpleRouter/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<coverage processUncoveredFiles="true"
|
||||
ignoreDeprecatedCodeUnits="true">
|
||||
<include>
|
||||
<directory suffix=".php">src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
</include>
|
||||
</coverage>
|
||||
</phpunit>
|
||||
Reference in New Issue
Block a user