mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3655 from tk0miya/compile_latex_only_on_py36
tests: compile by LaTeX only with py36
This commit is contained in:
commit
19323d232a
@ -52,4 +52,4 @@ install:
|
||||
script:
|
||||
- flake8
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then make style-check type-check test-async; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION != '3.6' ]]; then make test; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION != '3.6' ]]; then SKIP_LATEX_BUILD=1 make test; fi
|
||||
|
@ -87,6 +87,14 @@ def compile_latex_document(app):
|
||||
app.config.latex_engine, p.returncode)
|
||||
|
||||
|
||||
def skip_if_requested(testfunc):
|
||||
if 'SKIP_LATEX_BUILD' in os.environ:
|
||||
msg = 'Skip LaTeX builds because SKIP_LATEX_BUILD is set'
|
||||
return skip_if(True, msg)(testfunc)
|
||||
else:
|
||||
return testfunc
|
||||
|
||||
|
||||
def skip_if_stylefiles_notfound(testfunc):
|
||||
if kpsetest(*STYLEFILES) is False:
|
||||
msg = 'not running latex, the required styles do not seem to be installed'
|
||||
@ -95,6 +103,7 @@ def skip_if_stylefiles_notfound(testfunc):
|
||||
return testfunc
|
||||
|
||||
|
||||
@skip_if_requested
|
||||
@skip_if_stylefiles_notfound
|
||||
@pytest.mark.parametrize(
|
||||
"engine,docclass",
|
||||
|
Loading…
Reference in New Issue
Block a user