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

feature(reportportal): export tests reports to reportportal

parent 74e8a843
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,10 @@ include:
ref: 'master'
file: '/includes/prepare.yml'
- project: 'wpdesk/gitlab-ci'
ref: 'master'
ref: 'feature/reportportal'
file: '/includes/tests/unit.yml'
- project: 'wpdesk/gitlab-ci'
ref: 'master'
ref: 'feature/reportportal'
file: '/includes/tests/codeception.yml'
- project: 'wpdesk/gitlab-ci'
ref: 'master'
......
......@@ -70,6 +70,10 @@
- vendor/bin/codecept run --steps --xml --html -f --verbose
after_script:
- rm -r ${APACHE_DOCUMENT_ROOT}
- cd tests/codeception/tests/_output
- export FILE_NAME=${CI_PROJECT_NAME}-unit-${CI_COMMIT_REF_NAME}.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"
codeception test:
<<: *job-codeception-test
......@@ -101,3 +105,7 @@ codeception test recorded manual:
after_script:
- 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}-unit-${CI_COMMIT_REF_NAME}.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"
......@@ -10,6 +10,11 @@
reports:
junit: tmp_artifacts/report.xml
interruptible: true
after_script:
- cd tmp_artifacts
- export FILE_NAME=${CI_PROJECT_NAME}-unit-${CI_COMMIT_REF_NAME}.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"
.template: &job-test-unit-template
<<: *job-test-template
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment