1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-01 14:10:31 +02:00

Add CodeClimate test coverage reporter to Travis. Refactor tests into /tests subdirectory.

This commit is contained in:
Danny van Kooten
2015-03-02 19:35:56 +07:00
parent 0c01df1128
commit 0e1e2b7d63
5 changed files with 26 additions and 3 deletions

3
.gitignore vendored
View File

@@ -2,3 +2,6 @@
_site
Gemfile
Gemfile.lock
build
vendor
composer.lock

View File

@@ -5,5 +5,12 @@ php:
- 5.5
- 5.6
- hhvm
script: phpunit --coverage-text ./
install:
- composer install --dev
script:
- phpunit -c phpunit.xml
after_script:
- ./vendor/bin/test-reporter
env:
global:
secure: XnXSc7nxJMIrm/EJ1KuwlN4f+sj2R/sR0IFHdOdbOfMKyZ/u6WEgZ3vNrdeAsisiC/QUJJ00DGku1pAl3t3Hzvam0N/SiHtXjB1ZLVbX00S1PEZ6Z+h9zoaUBXWoN6+0OdKN0Xjmj2lwvTpvUxUZXNabilOw0F9WS/+JasofqBQ=

View File

@@ -23,7 +23,8 @@
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "4.5.*"
"phpunit/phpunit": "4.5.*",
"codeclimate/php-test-reporter": "dev-master"
},
"autoload": {
"classmap": ["AltoRouter.php"]

12
phpunit.xml Normal file
View File

@@ -0,0 +1,12 @@
<phpunit
colors="true"
verbose="true">
<testsuites>
<testsuite name="altorouter">
<directory>./tests</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>