Browse Source

Merge pull request #237 from patacrep/fix_appveyor

Disable appveyor compilation
pull/239/head
oliverpool 9 years ago
committed by GitHub
parent
commit
a4f531f22f
  1. 14
      .appveyor.yml
  2. 2
      patacrep/files.py
  3. 4
      test/test_book/test_compilation.py
  4. 1
      texlive_packages.txt

14
.appveyor.yml

@ -23,23 +23,23 @@ install:
- "python -c \"import struct; print(struct.calcsize('P') * 8)\"" - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Download miktex portable (if not cached) # Download miktex portable (if not cached)
- ps: "If (!(Test-Path miktex-portable.exe)){wget http://mirrors.ctan.org/systems/win32/miktex/setup/miktex-portable.exe -OutFile ./miktex-portable.exe}" #- ps: "If (!(Test-Path miktex-portable.exe)){wget http://mirrors.ctan.org/systems/win32/miktex/setup/miktex-portable.exe -OutFile ./miktex-portable.exe}"
# Unzip miktex portable # Unzip miktex portable
- "7z x miktex-portable.exe * -aot -omiktex > nul" #- "7z x miktex-portable.exe * -aot -omiktex"
# Let the binaries be directly callable # Let the binaries be directly callable
- cmd: set PATH=%PATH%;C:\projects\patacrep\miktex\miktex\bin #- cmd: set PATH=%PATH%;C:\projects\patacrep\miktex\texmfs\install\miktex\bin
# Update some packages to prevent ltluatex bug # Update some packages to prevent ltluatex bug
# - cmd: mpm.exe --update=miktex-bin-2.9 --verbose # - cmd: mpm.exe --update=miktex-bin-2.9 --verbose
# - cmd: mpm.exe --update=ltxbase --update=luatexbase --update=luaotfload --update=miktex-luatex-base --update=fontspec # - cmd: mpm.exe --update=ltxbase --update=luatexbase --update=luaotfload --update=miktex-luatex-base --update=fontspec
# Manually install required texlive packages # Manually install required texlive packages
- cmd: mpm.exe --install-some texlive_packages.txt #- cmd: mpm.exe --verbose --install-some texlive_packages.txt
# Update fonts # Update fonts
- cmd: luaotfload-tool.exe --update #- cmd: luaotfload-tool.exe --update
build: false # Not a C# project, build stuff at the test step instead. build: false # Not a C# project, build stuff at the test step instead.
@ -50,5 +50,5 @@ test_script:
- "tox" - "tox"
# Cache Miktex Portable file # Cache Miktex Portable file
cache: #cache:
- C:\projects\patacrep\miktex-portable.exe #- C:\projects\patacrep\miktex-portable.exe

2
patacrep/files.py

@ -5,10 +5,10 @@ from functools import lru_cache
import logging import logging
import os import os
import pkgutil import pkgutil
import posixpath
import re import re
import sys import sys
from zipimport import zipimporter from zipimport import zipimporter
import posixpath
from patacrep import utils from patacrep import utils
from patacrep import __DATADIR__ from patacrep import __DATADIR__

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('TRAVIS' in os.environ, @unittest.skipIf('CI' in os.environ,
"Travis does not support lualatex compilation yet") "Travis or 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

1
texlive_packages.txt

@ -14,7 +14,6 @@ ms
newunicodechar newunicodechar
pgf pgf
tipa tipa
unicode-data
url url
xcolor xcolor
xstring xstring

Loading…
Cancel
Save