Try out coveralls

This commit is contained in:
Timothy Warren 2014-02-25 11:59:28 -05:00
parent 1e5d941eb4
commit b953b23ebd
2 changed files with 11 additions and 1 deletions

View File

@ -8,11 +8,18 @@ php:
- hhvm
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 'create database test;' -U postgres"
- 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:
allow_failures:

View File

@ -22,6 +22,9 @@
"require": {
"php": ">=5.3"
},
"require-dev": {
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"files": ["autoload.php"]
}