Commit 6d8dfc54 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

gitlab-ci: test phpunit coverage

parent 5099afac
Loading
Loading
Loading
Loading
+2 −3
Changes for .gitlab-ci.yml: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ stages:
- tests
- publish

# Cache libraries in between jobs
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
@@ -15,10 +14,10 @@ unit-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 > coverage.txt
    - php vendor/bin/phpunit --testsuite "unit" --filter 'ModuleOptions' --coverage-html coverage/
  artifacts:
    paths:
      - coverage.txt
      - coverage/

update-satis:
  stage: publish