Skip to content

Commit

Permalink
Scrutinizer: cache Drupal dependency for static code analysis
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ChristianBeer committed Jan 23, 2019
1 parent b7e0a11 commit 71bda63
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 71bda63

Please sign in to comment.