From 24aee67ae770e77d620aa671b4870ba25be3f595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Sun, 27 Jun 2021 23:32:16 +0200 Subject: [PATCH] Update Scrutinizer config. --- .scrutinizer.yml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 6d2683b..933ea71 100644 --- a/.scrutinizer.yml +++ b/.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: 'localhost' - project_setup: - before: - - mysql -e "CREATE DATABASE wp_phpunit_tests" + WP_TESTS_DB_HOST: '127.0.0.1' + + 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: