From 758c2bcc55fd68ff7e1ec234bfece4ddfec48a25 Mon Sep 17 00:00:00 2001 From: Roman Schmid Date: Sat, 19 Oct 2019 00:06:03 +0200 Subject: [PATCH] Travis: install phpcs locally. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7797439..cdefac0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,11 +8,11 @@ matrix: - php: 7.2 before_script: - - if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi + - if [[ $PHPCS_TEST ]]; then composer require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest --no-update; fi - composer install -n --dev --prefer-source script: - - if [[ $PHPCS_TEST ]]; then phpcs --standard=PSR2 src; fi + - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=PSR2 src; fi - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover after_script: