Checkout Config
filter:
paths: ["src/*"]
excluded_paths: ["vendor/*", "tests/*"]
checks:
php:
code_rating: true
duplication: true
tools:
external_code_coverage: false
build:
environment:
php:
version: 7.1.0
pecl_extensions:
- redis
- xdebug
mysql: true
redis: true
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
dependencies:
before:
- composer self-update
- composer update --no-interaction --prefer-dist --no-progress --dev
# Create DB for testing.
- mysql -u root -e 'CREATE DATABASE shieldon_unittest;'
- mysql -u root -e "CREATE USER 'shieldon'@'localhost' IDENTIFIED BY 'taiwan';"
- mysql -u root -e "GRANT ALL ON shieldon_unittest.* TO 'shieldon'@'localhost';"
tests:
before:
-
command: composer test
coverage:
file: 'clover.xml'
format: 'clover'
Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
filter:
excluded_paths:
- 'tests/*'
- 'bin/*'
checks:
php: true
coding_style:
php:
spaces:
around_operators:
concatenation: true