Try out coveralls
This commit is contained in:
parent
1e5d941eb4
commit
b953b23ebd
@ -8,11 +8,18 @@ php:
|
|||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- curl -s http://getcomposer.org/installer | php
|
||||||
|
- php composer.phar install --dev --no-interaction
|
||||||
- sh -c "psql -c 'DROP DATABASE IF EXISTS test;' -U postgres"
|
- sh -c "psql -c 'DROP DATABASE IF EXISTS test;' -U postgres"
|
||||||
- sh -c "psql -c 'create database test;' -U postgres"
|
- sh -c "psql -c 'create database test;' -U postgres"
|
||||||
- sh -c "mysql -e 'create database IF NOT EXISTS test;'"
|
- sh -c "mysql -e 'create database IF NOT EXISTS test;'"
|
||||||
|
|
||||||
script: cd tests && phpunit --coverage-text
|
script:
|
||||||
|
- mkdir -p build/logs
|
||||||
|
- cd tests && phpunit phpunit --coverage-clover build/logs/clover.xml
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- php vendor/bin/coveralls
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3"
|
"php": ">=5.3"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"satooshi/php-coveralls": "dev-master"
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": ["autoload.php"]
|
"files": ["autoload.php"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user