Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_pdf_report
Commits
07ed2532
Commit
07ed2532
authored
Apr 01, 2021
by
dorpvom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increased verbosity in error log when failing
parent
d62b4e93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.travis.yml
.travis.yml
+1
-1
generator.py
pdf_generator/generator.py
+2
-1
No files found.
.travis.yml
View file @
07ed2532
...
...
@@ -10,6 +10,6 @@ install:
-
"
pip
install
-r
requirements-dev.txt"
-
"
pip
install
codecov"
# command to run tests
script
:
"
pytest"
script
:
"
pytest
-v
"
after_success
:
-
codecov
pdf_generator/generator.py
View file @
07ed2532
...
...
@@ -16,7 +16,8 @@ def execute_latex(tmp_dir):
os
.
chdir
(
tmp_dir
)
output
,
return_code
=
execute_shell_command_get_return_code
(
'env buf_size=1000000 pdflatex {}'
.
format
(
MAIN_TEMPLATE
))
if
return_code
!=
0
:
print
(
f
'Warnings / Errors when trying to build PDF:
\n
{output}'
)
error_log
=
output
if
not
Path
(
'main.log'
)
.
is_file
()
else
Path
(
'main.log'
)
.
read_text
()
print
(
f
'Warnings / Errors when trying to build PDF:
\n
{error_log}'
)
if
not
Path
(
'main.pdf'
)
.
exists
():
raise
RuntimeError
(
'No pdf output generated. Aborting.'
)
os
.
chdir
(
current_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment