Skip to content
Snippets Groups Projects
Commit d5d9b27c authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

junit reports

parent e7efc5b9
Branches
Tags
No related merge requests found
......@@ -21,6 +21,9 @@ stages:
.template: &job-test-template
stage: tests
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
artifacts:
reports:
junit: tmp_artifacts/report.xml
.template: &job-test-integration-template
<<: *job-test-template
......@@ -34,7 +37,7 @@ stages:
- cat /tmp/woocommerce/woocommerce.php
- composer update --no-progress --prefer-dist
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- vendor/bin/phpunit --configuration phpunit-integration.xml --coverage-text --colors=never
- vendor/bin/phpunit --configuration phpunit-integration.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
only:
- master
......@@ -48,7 +51,7 @@ stages:
- cat /tmp/woocommerce/woocommerce.php
- composer update --no-progress --prefer-dist
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- vendor/bin/phpunit --configuration phpunit-integration.xml --no-coverage
- vendor/bin/phpunit --configuration phpunit-integration.xml --no-coverage --log-junit tmp_artifacts/report.xml
except:
- tags
only:
......@@ -62,7 +65,7 @@ stages:
- cat /tmp/wordpress-develop/src/wp-includes/version.php
- cat /tmp/woocommerce/woocommerce.php
- composer update --no-progress --prefer-dist
- vendor/bin/phpunit --configuration phpunit-unit.xml --coverage-text --colors=never
- vendor/bin/phpunit --configuration phpunit-unit.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
only:
- master
......@@ -75,7 +78,7 @@ stages:
- cat /tmp/wordpress-develop/src/wp-includes/version.php
- cat /tmp/woocommerce/woocommerce.php
- composer update --no-progress --prefer-dist
- vendor/bin/phpunit --configuration phpunit-unit.xml --no-coverage
- vendor/bin/phpunit --configuration phpunit-unit.xml --no-coverage --log-junit tmp_artifacts/report.xml
.template: &job-deploy-template
image: wpdesknet/amazon-svn-deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment