From d90703078989944d52a0f75dcbc1b08fc37786d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 16 Jun 2016 11:52:53 +0200 Subject: [PATCH] Teach Scrutinizer to use our own standard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on docs, see https://scrutinizer-ci.com/docs/tools/php/code-sniffer/ Signed-off-by: Michal Čihař --- .scrutinizer.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index f6f80df608..caae052b80 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -8,3 +8,15 @@ tools: php_code_sniffer: config: standard: "PMAStandard" +build: + dependencies: + before: + - composer require --dev "squizlabs/php_codesniffer:2.*" + - composer require --dev "phpmyadmin/coding-standard:>=0.1.0" + tests: + override: + - + command: './vendor/bin/phpcs --standard=PMAStandard ./ --report=checkstyle --report-file=cs-data' + analysis: + file: 'cs-data' # The reporter filename + format: 'php-cs-checkstyle' # The supported format by Scrutinizer