Skip to content

Commit 3928a45

Browse files
committed
Merge pull request #465 from mpalourdio/coverage
Re-enable scrutinizer-ci code coverage
2 parents cb47e9a + b2c8e5c commit 3928a45

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ before_commands:
22
- "composer update --prefer-source"
33

44
tools:
5-
php_code_coverage:
6-
enabled: true
7-
test_command: ./vendor/bin/phpunit -c phpunit.xml.dist
5+
external_code_coverage: true
6+
php_code_coverage: true
87
php_code_sniffer:
98
enabled: true
109
config:

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ before_script:
1616
script:
1717
- ./vendor/bin/phpunit --coverage-clover ./build/clover.xml
1818
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php build/coverage-checker.php build/clover.xml 70; fi"
19-
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.3' ]; then ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/; fi"
19+
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.3' ]; then ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/; fi"
20+
21+
after_script:
22+
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
23+
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover ./build/clover.xml; fi"

0 commit comments

Comments
 (0)