From c0c84ee2dcc5e75ae721488e3070ec3c8a00f580 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Wed, 27 Nov 2019 14:36:02 -0500 Subject: [PATCH] add code coverage travis stage --- .scrutinizer.yml | 7 +++++++ .styleci.yml | 1 - .travis.yml | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .scrutinizer.yml delete mode 100644 .styleci.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 00000000..e1104699 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,7 @@ +filter: + dependency_paths: [vendor/] +checks: + php: true +tools: + external_code_coverage: + timeout: 900 diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index 0485874b..00000000 --- a/.styleci.yml +++ /dev/null @@ -1 +0,0 @@ -preset: symfony \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 25feeb42..78afc38a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ env: - COMPOSER_MEMORY_LIMIT=-1 before_install: + - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available" - composer self-update - composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master @@ -59,5 +60,19 @@ jobs: script: - ./vendor/bin/php-cs-fixer fix -v --dry-run + - stage: Code Coverage + php: 7.3 + install: + - composer require --dev "symfony/mailer" --no-update + - travis_retry composer update -n --prefer-dist --prefer-stable + before_script: + - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,} + - if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi + script: + - ./vendor/bin/phpunit -v --coverage-text --coverage-clover=coverage.clover + after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover coverage.clover + notifications: slack: liip:3QOs1QKt3aCFxpJvRzpJCbVZ