From 47c08e050b4d098a85427a0e1d0ed59f9fdcb51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 9 Jan 2020 14:23:17 +0100 Subject: [PATCH] [Travis] Generate code coverage only for PHP 7.2. --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d293157..399ffde7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,10 @@ install: - mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=1;" script: - - php bin/phpunit --coverage-clover=coverage.xml + # Only run code coverage on PHP 7.2 to improve performance (code coverage is slower than normal testing) + - if [[ $(phpenv version-name) == '7.2' ]]; then php bin/phpunit --coverage-clover=coverage.xml ; fi + - if [[ $(phpenv version-name) != '7.2' ]]; then vendor/bin/phpunit ; fi + # Perform some simple linting if everything is correct - ./bin/console lint:yaml config --parse-tags - ./bin/console lint:twig templates --env=prod @@ -38,7 +41,7 @@ script: - ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction after_success: - - bash <(curl -s https://codecov.io/bash) - + - if [[ $(phpenv version-name) == '7.2' ]]; then bash <(curl -s https://codecov.io/bash) ; fi + - matrix: fast_finish: true \ No newline at end of file