summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-23 23:34:02 +0200
committermsquare <msquare@notrademark.de>2018-09-26 21:17:11 +0200
commitbc5764b33ffc8a92dfa1d788ba2a204dd991c3d9 (patch)
tree2813c46a5c01507076711e9966a52a9db90fcacd
parentaa2124f655788dea3f15c3040f3201f2b64e14b0 (diff)
Added junit xml export artifacts for GitLab CI
-rw-r--r--.gitignore1
-rw-r--r--.gitlab-ci.yml7
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index f6adf430..43d7f43e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,7 @@ _vimrc_local.vim
/test/coverage
/public/coverage
/coverage
+/unittests.xml
# Composer files
/vendor/
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2d7f3cf4..a388a82a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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