Skip to content

Commit

Permalink
Added style check and code coverage uploads to travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyamcl committed Oct 1, 2019
1 parent 66e3eaf commit 405b431
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ php:
before_script:
- composer install

env: COMPOSER_FLAGS="--prefer-lowest"
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"

script:
- vendor/bin/phpcs --standard=psr12 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 comments on commit 405b431

Please sign in to comment.