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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,3 +2,6 @@
|
||||
_site
|
||||
Gemfile
|
||||
Gemfile.lock
|
||||
build
|
||||
vendor
|
||||
composer.lock
|
||||
|
11
.travis.yml
11
.travis.yml
@@ -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=
|
||||
|
@@ -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
12
phpunit.xml
Normal 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>
|
Reference in New Issue
Block a user