Checkout Config
build:
environment:
mongodb: '3.2'
php: '7.1'
dependencies:
override:
- composer install --no-interaction --prefer-dist
before:
- mongo test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
checks:
php:
code_rating: true
tools:
external_code_coverage: true
php_analyzer: true
php_changetracking: true
php_code_sniffer:
config:
standard: "PSR2"
php_mess_detector: true
filter:
excluded_paths:
- docs/*
- tests/*
- src/Exception/*
Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
tests: true
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
coding_style:
php:
spaces:
around_operators:
concatenation: true