Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
bcbd3452
Commit
bcbd3452
authored
3 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Only fetch junit xml if it exists
parent
e5fbc06f
No related branches found
No related tags found
1 merge request
!310
Expose test artifacts to the Gitlab CI interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/integration-test.yml
+6
-0
6 additions, 0 deletions
test/integration-test.yml
with
6 additions
and
0 deletions
test/integration-test.yml
+
6
−
0
View file @
bcbd3452
...
...
@@ -22,16 +22,22 @@
-
name
:
Run tests
command
:
"
podman
run
--rm
--network
host
--mount
type=bind,source=/tmp/test-config.yml,destination=/test-config.yml
--mount
type=bind,source=/artifacts,destination=/artifacts
{{
test_image
}}"
-
stat
:
path
:
"
/artifacts/pytest.xml"
register
:
pytest_xml_stat
-
name
:
Retrieve test result
slurp
:
src
:
"
/artifacts/pytest.xml"
register
:
pytest_xml
when
:
"
pytest_xml_stat
and
pytest_xml_stat.exists"
-
name
:
Store test results locally
local_action
:
module
:
copy
dest
:
"
pytest.xml"
content
:
"
{{
pytest_xml['content']
|
b64decode
}}"
when
:
"
pytest_xml_stat
and
pytest_xml_stat.exists"
vars
:
test_image
:
"
registry.git.autistici.org/ai3/float:integration-test"
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