.gitlab-ci.yml 486 B

12345678910111213141516171819202122232425262728293031
  1. stages:
  2. - test
  3. variables:
  4. APP_ENV: ci
  5. SSH_PRIVATE_KEY: $SSH_PRIVATE_KEY
  6. XDEBUG_MODE: coverage
  7. cache:
  8. paths:
  9. - ./vendor
  10. before_script:
  11. - bash tests/ci_docker_install.sh > /dev/null
  12. - php -v
  13. unit:
  14. stage: test
  15. script:
  16. - php bin/phpunit --configuration phpunit.xml.dist --colors=never --no-interaction
  17. artifacts:
  18. paths:
  19. - ./coverage/
  20. when: always
  21. reports:
  22. junit: ./coverage/junit-report.xml
  23. coverage: '/^\s*Lines:\s*\d+.\d+\%/'