From 885d1a113163ce8dc406716835c7e3224da6a29a Mon Sep 17 00:00:00 2001 From: Libor M Date: Mon, 19 Oct 2020 16:42:10 +0200 Subject: [PATCH] fix scrutinizer --- .scrutinizer.yml | 12 +++++++++--- .travis.yml | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 6d188be..6ce76e3 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,3 +1,9 @@ +build: + nodes: + analysis: + tests: + override: [php-scrutinizer-run] + filter: excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*' ] @@ -14,11 +20,11 @@ tools: config: ruleset: phpmd.xml.dist external_code_coverage: - enabled: true - timeout: 900 + enabled: false + timeout: 1200 php_cpd: true # php_sim: # Temporarily disabled to allow focus on things other than duplicates # min_mass: 40 php_pdepend: true php_analyzer: true - sensiolabs_security_checker: true \ No newline at end of file + sensiolabs_security_checker: true diff --git a/.travis.yml b/.travis.yml index 40f71b4..e7214ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,8 +76,8 @@ after_script: ## PHPDocumentor ## - bash .travis_shell_after_success.sh ## Scrutinizer - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml + - if [ -z "$COVERAGE" ]; then wget https://scrutinizer-ci.com/ocular.phar ; fi + - if [ -z "$COVERAGE" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml ; fi notifications: webhooks: