From 71bda6353a60e863b35a079b9be31ef02adf6498 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Wed, 23 Jan 2019 20:42:11 +0100 Subject: [PATCH] Scrutinizer: cache Drupal dependency for static code analysis A lot of issues in Scrutinizer are calls to the Drupal API from BOINC modules. By making the code available, the static code analyzer can do a better job finding the real issues. --- .scrutinizer.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 2f1d19f176..124dcc6fea 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,3 +1,20 @@ +build: + nodes: + analysis: + dependencies: + before: + - command: 'mkdir -p 3rdParty/buildCache && wget https://ftp.drupal.org/files/projects/drupal-6.38.tar.gz -O drupal-6.38.tar.gz && tar -C 3rdParty/buildCache/ -xzf drupal-6.38.tar.gz' + not_if: 'test -e 3rdParty/buildCache/drupal-6.38' + cache: + disabled: false + directories: + - '3rdParty/buildCache' + tests: + override: + - command: phpcs-run + use_website_config: true + - php-scrutinizer-run + - js-scrutinizer-run filter: paths: - 'html/*.php' @@ -8,14 +25,15 @@ filter: excluded_paths: - '*.tpl.php' - '*.min.js' - - 'html/inc/htmLawed.php' - 'drupal/sites/default/modules/boinc/*' - 'drupal/sites/default/themes/boinc/*' dependency_paths: + - 'html/inc/htmLawed.php' - 'drupal/sites/all/libraries/*' - 'drupal/sites/default/boinc/modules/contrib/*' - 'drupal/sites/default/boinc/modules/boincstats/includes/pchart/*' - 'drupal/sites/all/libraries/phpmailer/*' + - '3rdParty/buildCache/drupal-6.38/*' checks: php: fix_php_opening_tag: false