Commit 71bda635 authored by Christian Beer's avatar Christian Beer

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.
parent b7e0a11d
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment