Commit bd9bd010 authored by Luís Cobucci's avatar Luís Cobucci Committed by GitHub

Merge pull request #2759 from malukenho/feature/add-scrutnizer

Move coverage session to sqlite.travis.xml file
parents 71d28a60 ddd99d51
...@@ -17,6 +17,7 @@ env: ...@@ -17,6 +17,7 @@ env:
before_script: before_script:
- if [[ $TRAVIS_PHP_VERSION = '7.1' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover .clover.xml"; else PHPUNIT_FLAGS=""; fi - if [[ $TRAVIS_PHP_VERSION = '7.1' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover .clover.xml"; else PHPUNIT_FLAGS=""; fi
- if [[ "$PHPUNIT_FLAGS" == "" ]]; then phpenv config-rm xdebug.ini || true; fi
matrix: matrix:
fast_finish: true fast_finish: true
...@@ -117,7 +118,7 @@ matrix: ...@@ -117,7 +118,7 @@ matrix:
after_script: after_script:
- if [[ "$PHPUNIT_FLAGS" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi - if [[ "$PHPUNIT_FLAGS" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$PHPUNIT_FLAGS" != "" ]]; then php ocular.phar code-coverage:upload --format=php-clover ./clover.xml; fi - if [[ "$PHPUNIT_FLAGS" != "" ]]; then php ocular.phar code-coverage:upload --format=php-clover .clover.xml; fi
install: install:
- travis_retry composer install - travis_retry composer install
......
...@@ -49,11 +49,6 @@ ...@@ -49,11 +49,6 @@
<directory>./tests/Doctrine/Tests/DBAL/Performance</directory> <directory>./tests/Doctrine/Tests/DBAL/Performance</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib/Doctrine</directory>
</whitelist>
</filter>
<listeners> <listeners>
<listener class="Doctrine\Tests\DbalPerformanceTestListener"/> <listener class="Doctrine\Tests\DbalPerformanceTestListener"/>
</listeners> </listeners>
......
...@@ -14,7 +14,11 @@ ...@@ -14,7 +14,11 @@
<directory>../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./../../lib/Doctrine</directory>
</whitelist>
</filter>
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment