Added junit xml export artifacts for GitLab CI

This commit is contained in:
Igor Scheller 2018-09-23 23:34:02 +02:00 committed by msquare
parent aa2124f655
commit bc5764b33f
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -23,6 +23,7 @@ _vimrc_local.vim
/test/coverage
/public/coverage
/coverage
/unittests.xml
# Composer files
/vendor/

View File

@ -52,6 +52,9 @@ test:
when: always
paths:
- ./coverage/
- ./unittests.xml
reports:
junit: ./unittests.xml
coverage: '/^\s*Lines:\s*(\d+(?:\.\d+)?%)/'
before_script:
- apk add ${PHPIZE_DEPS} && pecl install xdebug && docker-php-ext-enable xdebug
@ -62,8 +65,8 @@ test:
- composer --no-ansi install --dev
- ./bin/migrate
script:
- vendor/bin/phpunit -v --colors=never --coverage-text --coverage-html "${HOMEDIR}/coverage/"
- ./bin/migrate down
- vendor/bin/phpunit -v --colors=never --coverage-text --coverage-html "${HOMEDIR}/coverage/" --log-junit "${HOMEDIR}/unittests.xml"
- bin/migrate down
release-image:
<<: *docker_definition