Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-08-17 23:41:24 +0400
committersgiehl <stefan@piwik.org>2014-08-17 23:41:24 +0400
commite7da07ab0cacb0a5e89235a9c3d4ab807116b847 (patch)
tree94c9ad3744260be5a8a6339a55a1431e9f347c13 /.travis.yml
parent1a40bc2c589e6f74621d1126454bd5901aa302ff (diff)
refs #4224, #4302 - added code coverage report using coveralls.io
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 95003d4a40..5029c10cca 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,6 +34,20 @@ matrix:
allow_failures:
- php: hhvm
- php: 5.6
+ - php: 5.4
+ env: MYSQL_ADAPTER=PDO_MYSQL COVERAGE=Core
+ - php: 5.4
+ env: MYSQL_ADAPTER=PDO_MYSQL COVERAGE=Plugins
+ - php: 5.4
+ env: MYSQL_ADAPTER=PDO_MYSQL COVERAGE=Integration
+ include:
+ # Code Coverage
+ - php: 5.4
+ env: MYSQL_ADAPTER=PDO_MYSQL COVERAGE=Core
+ - php: 5.4
+ env: MYSQL_ADAPTER=PDO_MYSQL COVERAGE=Plugins
+ - php: 5.4
+ env: MYSQL_ADAPTER=PDO_MYSQL COVERAGE=Integration
exclude:
# Javascript tests need to run only on one PHP version
- php: 5.4
@@ -91,6 +105,10 @@ install:
- git checkout master -- ./tests/travis ./plugins/CoreConsole || true
before_script:
+ - if [ -z "$TEST_SUITE" ];
+ then composer require satooshi/php-coveralls dev-master;
+ fi
+
- ./tests/travis/configure_git.sh
# print out mysql information
@@ -139,6 +157,10 @@ after_script:
# change directory back to root travis dir
- cd $PIWIK_ROOT_DIR
+ - if [ -z "$TEST_SUITE" ];
+ then php vendor/bin/coveralls -v;
+ fi
+
# output contents of files w/ debugging info to screen
- cat /var/log/nginx/error.log
- cat $PIWIK_ROOT_DIR/tmp/php-fpm.log