From b953b23ebd03889b357504c3f12419f3d6760953 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Tue, 25 Feb 2014 11:59:28 -0500 Subject: [PATCH] Try out coveralls --- .travis.yml | 9 ++++++++- composer.json | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) 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"] }