Checkout Config
checks:
php: true
filter:
paths:
- "src/*"
build:
image: default-bionic
environment:
php:
version: 8.0.11
ini:
"xdebug.mode": coverage
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
phpunit:
services:
mysql: 5.7
dependencies:
override:
- composer self-update
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
tests:
before:
- sed -i "s/'root-password'/''/" tests/TestCase.php
- 'mysql -u root -e "CREATE DATABASE yiitest"'
override:
- command: "./vendor/bin/phpunit --coverage-clover ./coverage.xml"
on_node: 1
coverage:
file: coverage.xml
format: php-clover
Repository Config
# language: php
# tests: true