Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Commits
ca3b513c
Commit
ca3b513c
authored
6 years ago
by
Steffen Hauf
Browse files
Options
Downloads
Patches
Plain Diff
Add report copy to docs
parent
e0bba92e
No related branches found
No related tags found
1 merge request
!35
Feat/reproducibility
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
docs/source/conf.py
+4
-4
4 additions, 4 deletions
docs/source/conf.py
with
5 additions
and
4 deletions
.gitignore
+
1
−
0
View file @
ca3b513c
...
...
@@ -29,3 +29,4 @@ docs/build
docs/source/_notebooks/*
docs/source/test_rsts/*
docs/source/test_results.rst
docs/source/_static/reports
This diff is collapsed.
Click to expand it.
docs/source/conf.py
+
4
−
4
View file @
ca3b513c
...
...
@@ -586,16 +586,16 @@ with open("test_results.rst", "w") as f:
# copy reports
pdfs
=
glob
.
glob
(
"
{}/{}/*/*.pdf
"
.
format
(
test_artifact_dir
,
commit
))
if
not
os
.
path
.
exists
(
"
./_static/{}
"
.
format
(
commit
)):
os
.
makedirs
(
"
./_static/{}
"
.
format
(
commit
))
if
not
os
.
path
.
exists
(
"
./_static/
reports/
{}
"
.
format
(
commit
)):
os
.
makedirs
(
"
./_static/
reports/
{}
"
.
format
(
commit
))
reports
=
{}
for
pdf
in
pdfs
:
ppath
=
"
{}/{}.pdf
"
.
format
(
commit
,
uuid4
())
shutil
.
copyfile
(
pdf
,
"
./_static/{}
"
.
format
(
ppath
))
shutil
.
copyfile
(
pdf
,
"
./_static/
reports/
{}
"
.
format
(
ppath
))
rloc
=
pdf
.
split
(
"
/
"
)[
-
2
]
rlist
=
reports
.
get
(
rloc
,
[])
rname
=
os
.
path
.
basename
(
pdf
).
split
(
"
.
"
)[
0
]
rlist
.
append
((
rname
,
ppath
))
rlist
.
append
((
rname
,
"
../_static/reports/{}
"
.
format
(
ppath
))
)
reports
[
rloc
]
=
rlist
xmls
=
glob
.
glob
(
"
{}/{}/*/TEST*.xml
"
.
format
(
test_artifact_dir
,
commit
))
...
...
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