Browse Source

Merge pull request #238 from patacrep/compile_on_travis

Compile pdf on travis
pull/239/head
oliverpool 9 years ago
committed by GitHub
parent
commit
86a11efe69
  1. 26
      .travis.yml
  2. 4
      test/test_book/test_compilation.py

26
.travis.yml

@ -7,17 +7,21 @@ install:
- pip install tox - pip install tox
script: script:
- tox -e lint,py35 - tox -e lint,py35
sudo: false sudo: required
# addons: dist: trusty
# apt: addons:
# packages: apt:
# - texlive-latex-base packages:
# - latex-xcolor - texlive-latex-base
# - texlive-latex-extra - latex-xcolor # package xcolor
# - texlive-luatex - texlive-latex-extra # package xstring
# - texlive-xetex - pgf # package tikz
# - pgf - texlive-luatex # package luaotfload
# - lmodern - texlive-xetex # package eu2enc
- lmodern
- texlive-lang-french
- texlive-lang-german
- texlive-lang-spanish
# - lilypond # - lilypond
notifications: notifications:
email: false email: false

4
test/test_book/test_compilation.py

@ -122,8 +122,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
@classmethod @classmethod
def _create_compilation_test(cls, base, onthefly=False): def _create_compilation_test(cls, base, onthefly=False):
"""Return a function testing that `base.tex` is correctly compiled.""" """Return a function testing that `base.tex` is correctly compiled."""
@unittest.skipIf('CI' in os.environ, @unittest.skipIf('APPVEYOR' in os.environ,
"Travis or AppVeyor does not support lualatex compilation yet") "AppVeyor does not support lualatex compilation yet")
def test_compilation(self): def test_compilation(self):
"""Test that `base` is rendered to pdf.""" """Test that `base` is rendered to pdf."""
# Check compilation # Check compilation

Loading…
Cancel
Save