Skip to content

Commit

Permalink
AppveyorCI: Prevent skip of tests of XMLBear
Browse files Browse the repository at this point in the history
XMLBear is skipped on Appveyor Windows builds
due to dependency issues. Fixes all dependency
issues.

Closes coala#1354
  • Loading branch information
Techievena committed Apr 19, 2017
1 parent 72bc27f commit c1733c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
12 changes: 11 additions & 1 deletion .ci/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install:
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "SET PATH=C:\\Program\ Files\\Java\\jdk1.7.0\\bin;%PATH%"
- "SET PATH=C:\\tools\\xmllint\\bin;C:\\Program\ Files\\Java\\jdk1.7.0\\bin;%PATH%"

# language-tool needs the registry tweaked here since it determines the java
# version wrong (since appveyor has both, 1.7 and 1.8 in x86 and x64).
Expand All @@ -48,6 +48,16 @@ install:
- "npm config set loglevel warn"
- "npm install"

- curl -fsSL ftp://ftp.zlatkovic.com/libxml/iconv-1.9.2.win32.zip -o iconv.zip
- curl -fsSL ftp://ftp.zlatkovic.com/libxml/libxml2-2.7.8.win32.zip -o libxml2.zip
- curl -fsSL ftp://ftp.zlatkovic.com/libxml/libxslt-1.1.26.win32.zip -o libxslt.zip
- curl -fsSL ftp://ftp.zlatkovic.com/libxml/zlib-1.2.5.win32.zip -o zlib.zip
- 7z x *.zip -oC:\tools\xmllint
- xcopy C:\tools\xmllint\iconv-1.9.2.win32 C:\tools\xmllint /E /H /R /X /Y /I /K
- xcopy C:\tools\xmllint\libxml2-2.7.8.win32 C:\tools\xmllint /E /H /R /X /Y /I /K
- xcopy C:\tools\xmllint\libxslt-1.1.26.win32 C:\tools\xmllint /E /H /R /X /Y /I /K
- xcopy C:\tools\xmllint\zlib-1.2.5 C:\tools\xmllint /E /H /R /X /Y /I /K

build: false # Not a C# project, build stuff at the test step instead.

test_script:
Expand Down
12 changes: 6 additions & 6 deletions tests/xml2/XMLBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def load_testdata(filename):
<a>hey and hi</a>
"""

dtd_file = os.path.join(os.path.dirname(__file__),
'test_files',
'note.dtd')
dtd_file = os.path.abspath(os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'testfiles', 'note.dtd'))

schema_file = os.path.join(os.path.dirname(__file__),
'test_files',
'note.xsd')
schema_file = os.path.abspath(os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'testfiles', 'note.xsd'))

valid_xml_path = load_testdata('note.xml')
valid_xml_url = load_testdata('concept-valid.xml')
Expand Down

0 comments on commit c1733c9

Please sign in to comment.