stages: - test variables: APP_ENV: ci SSH_PRIVATE_KEY: $SSH_PRIVATE_KEY XDEBUG_MODE: coverage cache: paths: - ./vendor before_script: - bash tests/ci_docker_install.sh > /dev/null - php -v unit: stage: test script: - php bin/phpunit --configuration phpunit.xml.dist --colors=never --no-interaction artifacts: paths: - ./coverage/ when: always reports: junit: ./coverage/junit-report.xml coverage: '/^\s*Lines:\s*\d+.\d+\%/'