Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
947670f3
Commit
947670f3
authored
3 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(plugin deploy): WP/WC/PHP versions update
parent
86c5a713
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/tests/unit.yml
+2
-5
2 additions, 5 deletions
includes/tests/unit.yml
with
2 additions
and
5 deletions
includes/tests/unit.yml
+
2
−
5
View file @
947670f3
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment