Commit ff17bf86 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

gitlab-ci: test phpunit coverage

parent 50f5600e
Loading
Loading
Loading
Loading
+1
Changes for .gitlab-ci.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ cache:
unit-tests:
  stage: tests
  script:
    - echo 'zend_extension=xdebug.so' > /etc/php/7.0/cli/conf.d/xdebug.ini
    - composer install --no-interaction --no-suggest --no-progress
    - php vendor/bin/phpunit --testsuite "unit" --filter 'ModuleOptions' --coverage-text --colors=never

+6
Changes for phpunit.xml: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,12 @@
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>

    <!--<php>-->
        <!--&lt;!&ndash; Integration Test Variables &ndash;&gt;-->
        <!--<const name="HOST" value="localhost"/>-->