From 008f942e781b04ccaf8da3d49a754b79118c9f9c Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Tue, 27 Feb 2018 14:02:33 +0100 Subject: [PATCH] [FEATURE] fix tests for grumphp 0.14 (#17) --- .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ composer.json | 12 ++++++------ grumphp.yml | 2 +- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..250b07e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +language: php +dist: trusty +sudo: false + +git: + depth: 5 + +php: + - 5.6 + - 7.0 + - 7.1 + - 7.2 + - nightly + +env: + matrix: + - + - dependencies=lowest + - dependencies=highest + +cache: + directories: + - $HOME/.composer/cache + +matrix: + fast_finish: true + +before_install: + - phpenv config-rm xdebug.ini || echo "xdebug not available" + +install: + - if [ -z "$dependencies" ]; then composer install --no-progress --no-scripts --no-suggest -n; fi; + - if [ "$dependencies" = "lowest" ]; then composer update --no-progress --no-scripts --no-suggest -n --prefer-lowest; fi; + - if [ "$dependencies" = "highest" ]; then composer require phpro/grumphp:* --no-progress --no-scripts --no-suggest -n; fi; + +script: + - ./vendor/bin/grumphp run diff --git a/composer.json b/composer.json index f3895c5..75eb5c7 100644 --- a/composer.json +++ b/composer.json @@ -15,19 +15,19 @@ "php": "5.6" } }, + "support": { + "issues": "https://github.com/pluswerk/grumphp-config/issues" + }, "autoload": { "psr-4": { "PLUS\\": "src/" } }, - "support": { - "issues": "https://github.com/pluswerk/grumphp-config/issues" - }, "require": { "php": ">=5.6", - "composer-plugin-api": "*", - "phpmd/phpmd": "^2.6", - "phpro/grumphp": "0.*", + "composer-plugin-api": "1.*", + "phpmd/phpmd": "2.6.*", + "phpro/grumphp": "0.14.*", "pluswerk/grumphp-bom-task": "4.*", "pluswerk/grumphp-xliff-task": "2.*", "squizlabs/php_codesniffer": "2.* | 3.*" diff --git a/grumphp.yml b/grumphp.yml index 7eee8d4..5687d55 100644 --- a/grumphp.yml +++ b/grumphp.yml @@ -42,7 +42,7 @@ parameters: detect_key_conflicts: true phpcs: standard: "PSR2" - show_warnings: false + warning_severity: 900000 tab_width: 4 ignore_patterns: "%convention.phpcslint_ignore_pattern%" xmllint: