Skip to content

Commit

Permalink
Travis: install phpcs locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
bummzack committed Oct 18, 2019
1 parent 1c221d6 commit 758c2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 758c2bc

Please sign in to comment.