From 3c629f091d1d050c92601d19f272af1fb3d7602d Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 21 Mar 2016 20:21:37 +0900 Subject: [PATCH] Travis: Generate code coverage report when running tests --- .travis.yml | 2 +- composer.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 031fd48cf..e9bd31b8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ before_script: - composer install script: - - composer test + - composer test-ci notifications: email: diff --git a/composer.json b/composer.json index 1a8b7f39e..4fb4e4fa4 100644 --- a/composer.json +++ b/composer.json @@ -72,7 +72,8 @@ } }, "scripts": { - "test": "vendor/bin/phpunit -c tests/phpunit.xml" + "test": "vendor/bin/phpunit -c tests/phpunit.xml", + "test-ci": "vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverage.xml" }, "extra": { "branch-alias": {