Skip to content

Commit

Permalink
ci: add scrutinizer-ci (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
COil authored Oct 8, 2024
1 parent 7ce3235 commit 691b8ad
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

[![Latest Version](https://img.shields.io/packagist/v/strangebuzz/microsymfony.svg?style=flat-square)](https://packagist.org/packages/strangebuzz/microsymfony)
[![Software License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/github/actions/workflow/status/strangebuzz/microsymfony/symfony.yml?branch=main&style=flat-square)](https://github.com/strangebuzz/microsymfony/actions?query=workflow%3ASymfony+branch%3Amain)
[![Build Status (GitHub)](https://img.shields.io/github/actions/workflow/status/strangebuzz/microsymfony/symfony.yml?branch=main&style=flat-square)](https://github.com/strangebuzz/microsymfony/actions?query=workflow%3ASymfony+branch%3Amain)
[![Code Coverage](https://scrutinizer-ci.com/g/strangebuzz/MicroSymfony/badges/coverage.png?b=main)](https://scrutinizer-ci.com/g/strangebuzz/MicroSymfony/?branch=main)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/strangebuzz/MicroSymfony/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/strangebuzz/MicroSymfony/?branch=main)
[![Quality Score](https://img.shields.io/scrutinizer/g/strangebuzz/microsymfony.svg?style=flat-square)](https://scrutinizer-ci.com/g/strangebuzz/microsymfony)


## Introduction 🖋

Expand Down
37 changes: 37 additions & 0 deletions scrutinizer-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# @see https://scrutinizer-ci.com/g/strangebuzz/MicroSymfony/settings/build-config
build:
environment:
php: 8.3.12
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
tests: true
# https://scrutinizer-ci.com/docs/build/code_coverage
coverage:
tests:
override:
- command: XDEBUG_MODE=coverage php -d xdebug.enable=1 -d memory_limit=-1 vendor/bin/phpunit --coverage-html=var/coverage --coverage-clover=var/coverage/clover.xml
coverage:
file: var/coverage/clover.xml
format: clover

filter:
excluded_paths:
- 'castor.php'
- 'tests/*'
- 'bin/*'
- '*/vendor/*'

checks:
php: true

coding_style:
php: { }

0 comments on commit 691b8ad

Please sign in to comment.