Skip to content

Instantly share code, notes, and snippets.

@diazwatson
Last active January 8, 2021 08:20
Show Gist options
  • Save diazwatson/013d4478f36f12e0ac4a6fbe284e9383 to your computer and use it in GitHub Desktop.
Save diazwatson/013d4478f36f12e0ac4a6fbe284e9383 to your computer and use it in GitHub Desktop.
filter:
paths: ["app/code/{vendor-name-goes-here}/*", "vendor/{vendor-name-goes-here}/*"]
excluded_paths:
- "vendor/{vendor-name-goes-here}/{module-name-goes-here}/*"
- "app/code/{vendor-name-goes-here}/{module-name-goes-here}/*"
- '*.min.js'
before_commands:
tools:
php_code_sniffer:
config: { standard: 'Zend,PSR-1,PSR-2' }
php_changetracking: false
php_cs_fixer: true
php_mess_detector: true
php_pdepend: true
php_analyzer: true
checks:
javascript: true
php:
unused_variables: true
use_statement_alias_conflict: true
simplify_boolean_return: true
useless_calls: false
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: false
remove_extra_empty_lines: true
properties_in_camelcaps: true
parameters_in_camelcaps: true
fix_line_ending: true
return_doc_comment_if_not_inferrable: true
return_doc_comments: true
param_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
excluded_dependencies:
- 'magento/*'
- {vendor-name-goes-here}/{module-name-goes-here}
- {vendor-name-goes-here}/{module-name-goes-here}
build:
environment:
postgresql: false
mysql: 5.7
variables:
GITHUB_OAUTH_KEY: {github-oauth-goes-here}
php:
version: 7.0.16
dependencies:
project_setup:
before:
- mysql -e "CREATE DATABASE {project-name}_local_integration_tests"
override:
-
command: 'composer create-project --repository=https://repo.magento.com magento/marketplace-eqp magento-coding-standard && composer create-project magento-ecg/coding-standard magento-ecg-coding-standard'
idle_timeout: 600
tests:
override:
-
command: 'magento-coding-standard/vendor/bin/phpcs --report-checkstyle=./analysis_result_file.xml --ignore=vendor/space48/temando-*,*/test/*,*min.js app/code/Space48 vendor/space48 --standard=MEQP2 --severity=10'
on_node: 1
analysis:
format: php-cs-checkstyle
file: ./analysis_result_file.xml
-
command: 'magento-ecg-coding-standard/vendor/bin/phpcs --report-checkstyle=./analysis_result_file.xml --ignore=vendor/space48/temando-*,*/test/*,*min.js app/code/Space48 vendor/space48 --standard=magento-ecg-coding-standard/EcgM2 --severity=5'
on_node: 2
analysis:
format: php-cs-checkstyle
file: ./analysis_result_file.xml
-
command: 'vendor/bin/phpunit --coverage-clover=coverage.xml --configuration /home/scrutinizer/build/dev/tests/unit/s48-phpunit.xml'
on_node: 1
coverage:
file: coverage.xml
format: clover
-
command: 'vendor/bin/phpunit --coverage-clover=coverage.xml --configuration /home/scrutinizer/build/dev/tests/integration/s48-phpunit.xml'
on_node: 2
coverage:
file: coverage.xml
format: clover
stop_on_failure: false
cache:
directories:
- ~/.composer/cache
nodes:
tests: true
analysis:
tests:
override:
-
command: phpcs-run
use_website_config: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false
credentials:
http_basic:
'repo.magento.com':
username: '{user-name-goes-here}'
password: '{password-goes-here}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment