Repository Config
checks:
php: true
javascript: true
filter:
dependency_paths:
- wordpress/
excluded_paths:
- /tests/*
- '*/build/*'
- .sami.php
build_failure_conditions:
- 'project.metric_change("scrutinizer.quality", < -0.10)'
- 'elements.rating(<= D).exists'
- 'elements.rating(<= D).new.exists'
- 'issues.label("coding-style").exists'
- 'issues.label("coding-style").new.exists'
- 'issues.severity(>= MAJOR).new.exists'
- 'issues.severity(>= MAJOR).exists'
- 'project.metric("scrutinizer.quality", < 9)'
- 'project.metric("scrutinizer.test_coverage", < 0.20)'
- 'project.metric_change("scrutinizer.test_coverage", < -0.1)'
- 'patches.label("Doc Comments").exists'
- 'patches.label("Spacing").exists'
build:
environment:
php:
version: 7.4
dependencies:
override:
- composer install --ignore-platform-reqs --no-interaction
- npm install -g yarn && yarn && yarn install
nodes:
analysis:
dependencies:
before:
- composer require --dev johnpbloch/wordpress
- composer require --dev htmlburger/carbon-fields
project_setup:
override:
- cp config.json.dist config.json
tests:
override:
- php-scrutinizer-run
- js-scrutinizer-run
- phpcs-run
- eslint-run ./resources/scripts/**
- 'npm run lint:styles'
- npm run build
coverage:
tests:
override:
- command: composer test
coverage:
file: tests/_reports/logs/clover.xml
format: clover