From e69b22e9f71fb2467324c785ac8f66a8853bf5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 20 Dec 2019 22:10:42 -0300 Subject: [PATCH] Add phpcs to the Travis build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds composer test command. Signed-off-by: MaurĂ­cio Meneghini Fauth --- .travis.yml | 7 +++++++ composer.json | 6 ++++++ phpcs.xml.dist | 20 +++++++++++++++++++- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b37a20a175..d5da9faa34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,6 +119,13 @@ matrix: env: CI_MODE=test install: - composer install --no-interaction --ignore-platform-reqs + - php: "7.1" + before_script: skip + after_script: skip + after_success: skip + script: + - test/ci-lint + - vendor/bin/phpcs --standard=phpcs.xml.dist allow_failures: - php: "nightly" diff --git a/composer.json b/composer.json index 5653a0d826..2423a2565a 100644 --- a/composer.json +++ b/composer.json @@ -93,5 +93,11 @@ "branch-alias": { "dev-master": "4.9.x-dev" } + }, + "scripts": { + "test": [ + "phpcs", + "phpunit --color=always" + ] } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 7925efebc7..72448ac474 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -1,6 +1,24 @@ - + + + + + + + + + + + + + + + + + + +