From a12a968e3898c9a06d43426163760243b58a18b6 Mon Sep 17 00:00:00 2001
From: Fabian Becker <halfdan@xnorfz.de>
Date: Thu, 7 Feb 2013 12:07:00 +0000
Subject: [PATCH] Change pwd, enable text coverage (HTML report is no use)

Adjust travis.sh

refs #3722
---
 .travis.yml             | 4 ++--
 tests/PHPUnit/travis.sh | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 3524595775..3de7f67415 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,12 +12,12 @@ env:
     - TEST_SUITE=CoreTests
     - TEST_SUITE=IntegrationTests
 
-script: phpunit --configuration PHPUnit/phpunit.xml.dist --testsuite $TEST_SUITE
+script: phpunit --configuration phpunit.xml --testsuite $TEST_SUITE --coverage-text
 
 before_script:
   - mysql -e 'create database piwik_test;'
   - ./tests/PHPUnit/travis.sh
-  - cd tests
+  - cd tests/PHPUnit
 
 matrix:
   allow_failures:
diff --git a/tests/PHPUnit/travis.sh b/tests/PHPUnit/travis.sh
index 7fbe8426ac..957f7d4007 100755
--- a/tests/PHPUnit/travis.sh
+++ b/tests/PHPUnit/travis.sh
@@ -2,6 +2,7 @@
 
 # Copy Piwik configuration
 cp ./tests/PHPUnit/config.ini.travis.php ./config/config.ini.php
+cp ./tests/PHPUnit/phpunit.xml.dist ./tests/PHPUnit/phpunit.xml
 
 # Create tmp/ sub-directories
 mkdir ./tmp/assets
-- 
GitLab