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
script:
- tox -e lint,py35
sudo: false
# addons:
# apt:
# packages:
# - texlive-latex-base
# - latex-xcolor
# - texlive-latex-extra
# - texlive-luatex
# - texlive-xetex
# - pgf
# - lmodern
sudo: required
dist: trusty
addons:
apt:
packages:
- texlive-latex-base
- latex-xcolor # package xcolor
- texlive-latex-extra # package xstring
- pgf # package tikz
- texlive-luatex # package luaotfload
- texlive-xetex # package eu2enc
- lmodern
- texlive-lang-french
- texlive-lang-german
- texlive-lang-spanish
# - lilypond
notifications:
email: false

4
test/test_book/test_compilation.py

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

Loading…
Cancel
Save