mirror of https://github.com/BOINC/boinc.git
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.
This commit is contained in:
parent
b7e0a11db6
commit
71bda6353a
|
@ -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:
|
filter:
|
||||||
paths:
|
paths:
|
||||||
- 'html/*.php'
|
- 'html/*.php'
|
||||||
|
@ -8,14 +25,15 @@ filter:
|
||||||
excluded_paths:
|
excluded_paths:
|
||||||
- '*.tpl.php'
|
- '*.tpl.php'
|
||||||
- '*.min.js'
|
- '*.min.js'
|
||||||
- 'html/inc/htmLawed.php'
|
|
||||||
- 'drupal/sites/default/modules/boinc/*'
|
- 'drupal/sites/default/modules/boinc/*'
|
||||||
- 'drupal/sites/default/themes/boinc/*'
|
- 'drupal/sites/default/themes/boinc/*'
|
||||||
dependency_paths:
|
dependency_paths:
|
||||||
|
- 'html/inc/htmLawed.php'
|
||||||
- 'drupal/sites/all/libraries/*'
|
- 'drupal/sites/all/libraries/*'
|
||||||
- 'drupal/sites/default/boinc/modules/contrib/*'
|
- 'drupal/sites/default/boinc/modules/contrib/*'
|
||||||
- 'drupal/sites/default/boinc/modules/boincstats/includes/pchart/*'
|
- 'drupal/sites/default/boinc/modules/boincstats/includes/pchart/*'
|
||||||
- 'drupal/sites/all/libraries/phpmailer/*'
|
- 'drupal/sites/all/libraries/phpmailer/*'
|
||||||
|
- '3rdParty/buildCache/drupal-6.38/*'
|
||||||
checks:
|
checks:
|
||||||
php:
|
php:
|
||||||
fix_php_opening_tag: false
|
fix_php_opening_tag: false
|
||||||
|
|
Loading…
Reference in New Issue