Checkout Config
# .scrutinizer.yml
build:
environment:
php: '5.6.16'
mysql: true
selenium: false
postgresql: false
redis: false
hosts:
www.test.ci: '127.0.0.1'
apache2:
modules: ['rewrite']
sites:
symfony_app:
web_root: '/home/scrutinizer/web/'
host: 'www.test.ci'
variables:
WP_VERSION: '4.4.2'
WP_MULTISITE: '0'
WEB_BASE_DIR: '/home/scrutinizer/web/'
WP_CORE_DIR: '/home/scrutinizer/web/wordpress'
PLUGIN_BASE_DIR: '/home/scrutinizer/web/wordpress/wp-content/plugins/'
GD_PLUGIN_DIR: '/home/scrutinizer/web/wordpress/wp-content/plugins/geodirectory/'
dependencies:
before:
- mysql -uroot -e 'CREATE DATABASE wordpress_test'
- wget -nv -O /home/scrutinizer/build/tests/lib/wordpress-tests-lib/wp-tests-config.php https://raw.githubusercontent.com/mistergiri/scrutinizer-wordpress-tests/master/wp-tests-config.php
- mkdir -p $WEB_BASE_DIR
- mkdir -p $WP_CORE_DIR
- cd $WP_CORE_DIR
- mkdir -p ~/Downloads
- cd ~/Downloads
-
command: 'wget -nv -O ~/Downloads/wordpress.tar.gz https://github.com/WordPress/WordPress/tarball/$WP_VERSION > /dev/null 2>&1 && mkdir -p wordpress && tar --strip-components=1 -zxmf wordpress.tar.gz -C wordpress'
- cp -a ~/Downloads/wordpress/. $WP_CORE_DIR
# - mkdir -p $GD_PLUGIN_DIR
# - cp -r /home/scrutinizer/build/* $GD_PLUGIN_DIR
# - cd $GD_PLUGIN_DIR
# - composer install --no-interaction
cache:
directories:
- ~/Downloads/
# - ~/.wp-cli/
tests:
override:
-
command: 'phpunit --coverage-clover=coverage.xml'
idle_timeout: 1800
coverage:
file: 'coverage.xml'
format: 'php-clover'
Repository Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: false
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: false
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
code_rating: true
filter: { }
coding_style:
php:
indentation:
general:
use_tabs: true
build:
environment:
variables:
GITHUB_REPO_USER: 'GeoDirectory'
BITBUCKET_LOGIN_USER: 'AyeCode'
BITBUCKET_REPO_USER: 'GeoDirectory'
BITBUCKET_LOGIN_PASS: 'liamtoh666'
GOOGLE_RECAPTCHA_KEY: '6LchwxsTAAAAAE-MBKUfBeEYuGbf2VS1dGd5BYwV'
GOOGLE_RECAPTCHA_SECRET: '6LchwxsTAAAAABTqXNdawCE4MxVnOJGuMGEARkC8'
FACEBOOK_APP_ID: 'test'
FACEBOOK_APP_SECRET: 'test'
YELP_KEY: 'test'
YELP_KEY_SECRET: 'test'
YELP_TOKEN: 'test'
YELP_TOKEN_SECRET: 'test'