diff --git a/.travis.yml b/.travis.yml index 43ab33b..5f110db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/composer.json b/composer.json index 873b0a5..7851603 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,9 @@ "require": { "php": ">=5.3" }, + "require-dev": { + "satooshi/php-coveralls": "dev-master" + }, "autoload": { "files": ["autoload.php"] }