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
836c61d2
Commit
836c61d2
authored
4 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(reportportal): export tests reports to reportportal
parent
63b42232
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
includes/tests/codeception.yml
+2
-3
2 additions, 3 deletions
includes/tests/codeception.yml
includes/tests/reportportal.yml
+16
-0
16 additions, 0 deletions
includes/tests/reportportal.yml
includes/tests/unit.yml
+0
-5
0 additions, 5 deletions
includes/tests/unit.yml
with
18 additions
and
8 deletions
includes/tests/codeception.yml
+
2
−
3
View file @
836c61d2
...
...
@@ -106,6 +106,5 @@ codeception test recorded manual:
-
rm -r ${APACHE_DOCUMENT_ROOT}
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Testy
projektu
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zostały
wykonane.
<https://wpdesk.gitlab.io/-/${CI_PROJECT_NAME}/-/jobs/${CI_JOB_ID}/artifacts/tests/codeception/tests/_output/records.html|Zapis
testu>\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
-
cd tests/codeception/tests/_output
-
export FILE_NAME=${CI_PROJECT_NAME}-codeception.zip
-
zip ${FILE_NAME} report.xml
-
'
curl
-X
POST
"http://195.201.225.204:8080/api/v1/wpdesk/launch/import"
-H
"accept:
*/*"
-H
"Content-Type:
multipart/form-data"
-H
"Authorization:
bearer
5669a426-def1-4fa9-b563-72cf2ab84336"
-F
"file=@${FILE_NAME};type=text/xml"'
-
cp report.xml ${CI_PROJECT_NAME}-codeception.zip
-
'
curl
-X
POST
"http://195.201.225.204:8080/api/v1/${CI_PROJECT_NAMESPACE}/launch/import"
-H
"accept:
*/*"
-H
"Content-Type:
multipart/form-data"
-H
"Authorization:
bearer
5669a426-def1-4fa9-b563-72cf2ab84336"
-F
"file=@${FILE_NAME};type=text/xml"'
This diff is collapsed.
Click to expand it.
includes/tests/reportportal.yml
0 → 100644
+
16
−
0
View file @
836c61d2
reportportal unit tests latest
:
image
:
wpdesknet/phpunit-woocommerce:0-0
only
:
refs
:
-
devel
-
tags
needs
:
-
job
:
unit test lastest
artifacts
:
true
script
:
-
cd tmp_artifacts
-
export BRANCH=other
-
export FILE_NAME=${CI_PROJECT_NAME}-${BRANCH}-unit.xml
-
cp unit.xml ${FILE_NAME}
-
'
curl
-X
POST
"http://195.201.225.204:8080/api/v1/wpdesk/launch/import"
-H
"accept:
*/*"
-H
"Content-Type:
multipart/form-data"
-H
"Authorization:
bearer
5669a426-def1-4fa9-b563-72cf2ab84336"
-F
"file=@${FILE_NAME};type=text/xml"'
This diff is collapsed.
Click to expand it.
includes/tests/unit.yml
+
0
−
5
View file @
836c61d2
...
...
@@ -15,11 +15,6 @@
reports
:
junit
:
tmp_artifacts/unit.xml
interruptible
:
true
after_script
:
-
cd tmp_artifacts
-
export FILE_NAME=${CI_PROJECT_NAME}-unit.zip
-
zip ${FILE_NAME} unit.xml
-
'
curl
-X
POST
"http://195.201.225.204:8080/api/v1/wpdesk/launch/import"
-H
"accept:
*/*"
-H
"Content-Type:
multipart/form-data"
-H
"Authorization:
bearer
5669a426-def1-4fa9-b563-72cf2ab84336"
-F
"file=@${FILE_NAME};type=text/xml"'
.template
:
&job-test-unit-template
<<
:
*job-test-template
...
...
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