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

feature(plugin deploy): WP/WC/PHP versions update

parent 86c5a713
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
- tmp_artifacts/unit - tmp_artifacts/unit
reports: reports:
junit: tmp_artifacts/unit/report.xml junit: tmp_artifacts/unit/report.xml
cobertura: coverage.cobertura.xml
interruptible: true interruptible: true
.template: &job-test-unit-template .template: &job-test-unit-template
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
- cat /tmp/woocommerce/woocommerce.php - cat /tmp/woocommerce/woocommerce.php
- echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini - echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
script: script:
- vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-unit.xml --coverage-text --colors=never --log-junit tmp_artifacts/unit/report.xml --coverage-html tmp_artifacts/unit/coverage - vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-unit.xml --coverage-text --colors=never --log-junit tmp_artifacts/unit/report.xml --coverage-html tmp_artifacts/unit/coverage --coverage-cobertura=coverage.cobertura.xml
after_script: after_script:
- 'if [[ ${REPORTPORTAL_AUTHORIZATION} && ${REPORTPORTAL_PROJECT} ]]; then curl -X POST "http://195.201.225.204:8080/api/v1/${REPORTPORTAL_PROJECT}/launch/import" -H "accept: */*" -H "Content-Type: multipart/form-data" -H "${REPORTPORTAL_AUTHORIZATION}" -F "file=file=@tmp_artifacts/unit/report.xml;type=text/xml;type=text/xml;filename=${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-unit.xml"; fi' - 'if [[ ${REPORTPORTAL_AUTHORIZATION} && ${REPORTPORTAL_PROJECT} ]]; then curl -X POST "http://195.201.225.204:8080/api/v1/${REPORTPORTAL_PROJECT}/launch/import" -H "accept: */*" -H "Content-Type: multipart/form-data" -H "${REPORTPORTAL_AUTHORIZATION}" -F "file=file=@tmp_artifacts/unit/report.xml;type=text/xml;type=text/xml;filename=${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-unit.xml"; fi'
...@@ -51,10 +52,6 @@ unit test lastest: ...@@ -51,10 +52,6 @@ unit test lastest:
unit test lastest coverage: unit test lastest coverage:
<<: *job-test-unit-template <<: *job-test-unit-template
image: wpdesknet/phpunit-woocommerce:0-0 image: wpdesknet/phpunit-woocommerce:0-0
only:
refs:
- master
- main
unit test lastest manual: unit test lastest manual:
<<: *job-test-unit-template-fast <<: *job-test-unit-template-fast
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment