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 @@ - + + + + + + + + + + + + + + + + + + +