From 133aba1913133935f60dfa7b29720fb3107cf6b7 Mon Sep 17 00:00:00 2001 From: Kasper Garnaes Date: Wed, 5 Jun 2013 13:10:07 +0200 Subject: [PATCH] Added support for code coverage analysis using coveralls --- .travis.yml | 11 +++++++++++ composer.json | 6 ++++++ phpunit.xml.dist | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 composer.json diff --git a/.travis.yml b/.travis.yml index 625062e4..fc0eb39f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,14 @@ language: php php: - 5.3 - 5.4 + +before_script: + - curl -s http://getcomposer.org/installer | php + - php composer.phar install --dev --no-interaction + +script: + - mkdir -p build/logs + - php vendor/bin/phpunit -c phpunit.xml.dist + +after_script: + - php vendor/bin/coveralls \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..2c9ecf72 --- /dev/null +++ b/composer.json @@ -0,0 +1,6 @@ +{ + "require-dev": { + "phpunit/phpunit": "3.7.*", + "satooshi/php-coveralls": "dev-master" + } +} \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index abe45668..add8a2d2 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -27,4 +27,8 @@ + + + +