Skip to content

Commit

Permalink
Update Scrutinizer config.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jun 27, 2021
1 parent 1eda179 commit ca21b69
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .scrutinizer.yml
@@ -1,25 +1,36 @@
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run

coverage:
tests:
override:
- command: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
coverage:
file: build/logs/clover.xml
format: clover

environment:
php: 7.3.0
variables:
WP_TESTS_DB_NAME: 'wp_phpunit_tests'
WP_TESTS_DB_USER: 'root'
WP_TESTS_DB_PASS: ''
WP_TESTS_DB_HOST: '127.0.0.1'
project_setup:
before:
- mysql -e "CREATE DATABASE wp_phpunit_tests"

services:
mysql: 5.7

dependencies:
override:
- composer install --ignore-platform-reqs --no-interaction
nodes:
coverage:
tests:
override:
- command: ./vendor/bin/phpunit
coverage:
file: build/logs/clover.xml
format: clover

project_setup:
before:
- mysql -e "CREATE DATABASE wp_phpunit_tests"

filter:
excluded_paths:
Expand Down

0 comments on commit ca21b69

Please sign in to comment.