diff --git a/.travis.yml b/.travis.yml index 1c2c5db858c..81092082ae8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,7 +113,7 @@ install: - git checkout master -- ./tests/travis ./plugins/CoreConsole || true before_script: - - if [ -z "$TEST_SUITE" ]; + - if ([ -z "$TEST_SUITE" ] || [ -n "$PLUGIN_NAME" ]); then composer require satooshi/php-coveralls dev-master; fi @@ -165,7 +165,7 @@ after_script: # change directory back to root travis dir - cd $PIWIK_ROOT_DIR - - if [ -z "$TEST_SUITE" ]; + - if ([ -z "$TEST_SUITE" ] || [ -n "$PLUGIN_NAME" ]); then php vendor/bin/coveralls -v; fi diff --git a/plugins/CoreConsole/templates/travis.yml.twig b/plugins/CoreConsole/templates/travis.yml.twig index 640c7bfd2a4..4a36b2aba02 100644 --- a/plugins/CoreConsole/templates/travis.yml.twig +++ b/plugins/CoreConsole/templates/travis.yml.twig @@ -131,7 +131,7 @@ before_script: {% if customTravisBuildSteps.before_script.before|default is not empty %}{{ customTravisBuildSteps.before_script.before|raw }} {% endif %} - - if [ -z "$TEST_SUITE" ]; + - if ([ -z "$TEST_SUITE" ] || [ -n "$PLUGIN_NAME" ]); then composer require satooshi/php-coveralls dev-master; fi @@ -193,7 +193,7 @@ after_script: # change directory back to root travis dir - cd $PIWIK_ROOT_DIR - - if [ -z "$TEST_SUITE" ]; + - if ([ -z "$TEST_SUITE" ] || [ -n "$PLUGIN_NAME" ]); then php vendor/bin/coveralls -v; fi