diff options
author | Stefan Giehl <stefan.giehl@mayflower.de> | 2014-08-21 11:56:48 +0400 |
---|---|---|
committer | Stefan Giehl <stefan.giehl@mayflower.de> | 2014-08-21 11:56:48 +0400 |
commit | 766affc52c55dd3caaf53f805bab1b3af85191b6 (patch) | |
tree | f425cf94ff413f816e674e35ac53103ff75bb0f8 /.travis.yml | |
parent | 4672aad0c7733482ddf77ab5c495deced7a6ce5f (diff) | |
parent | a3b4798c4ea0d85cc05ff737d9254b5e92713912 (diff) |
Merge pull request #6036 from piwik/codecoverage
Enables code coverage reports using coveralls.io
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 434e10982d..f13b7a3f6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,9 +31,24 @@ env: - secure: "CW73pDjcaabpSL7bWiWIQLydKmvLzA1gWNv/zK0VcAKezQtCAQbqpIY1+B56wOhkaCWa7P+xdd2gUWEtvvdRKEC0sZcgCdHD5pQx390e5PWCMQTFO+doAElI4w4DMATCbH890Wcw2rotiZcjlkPYY+urIpUlcRsl6mMtBVQuQ9c=" matrix: + fast_finish: true 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 +106,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 +158,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 |