@@ -43,6 +43,8 @@ install:
4343 7z x -i"!asio*/include" asio-1.10.6.tar)
4444 - if not exist catch (
4545 wget --no-check-certificate https://raw.github.com/philsquared/Catch/master/single_include/catch.hpp --directory-prefix catch )
46+ - set DEBUG_LIBXML2_PATH=%APPVEYOR_BUILD_FOLDER%\libxml2-x86_64-debug
47+ - set RELEASE_LIBXML2_PATH=%APPVEYOR_BUILD_FOLDER%\libxml2-x86_64
4648
4749 # Setup Visual studio build environement
4850 - ' "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64'
@@ -59,33 +61,33 @@ build_script:
5961 - mkdir build && cd build
6062
6163 - mkdir 64bits-debug && cd 64bits-debug
62- # Add debug libxml2.dll in the path so that cmake & tests can find it
63- - set OLD_PATH=%PATH% && set PATH=%APPVEYOR_BUILD_FOLDER%\libxml2-x86_64-debug\ bin;%PATH%
64- - cmake -G "NMake Makefiles" -DPYTHON_BINDINGS=OFF -DBASH_COMPLETION=OFF - DCMAKE_PREFIX_PATH="%PREFIX_PATH%" ..\..
64+ # Add debug libxml2.dll in the path so that tests can find it
65+ - set TEST_PATH=%DEBUG_LIBXML2_PATH%\ bin
66+ - cmake -G "NMake Makefiles" -DPYTHON_BINDINGS=OFF -DCMAKE_PREFIX_PATH="%PREFIX_PATH%;%DEBUG_LIBXML2_PATH %" ..\..
6567 - cmake --build . --config debug
6668 - ctest --build-config debug %CTEST_PARAMS%
67- - set PATH=%OLD_PATH% && cd ..
69+ - cd ..
6870
6971 - mkdir 64bits-release & cd 64bits-release
70- # Add release libxml2.dll in the path so that cmake & tests can find it
71- - set OLD_PATH=%PATH% && set PATH=%APPVEYOR_BUILD_FOLDER%\libxml2-x86_64\ bin;%PATH%
72- - cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_BUILD_TYPE=Release - DPYTHON_BINDINGS=OFF -DBASH_COMPLETION=OFF - DCMAKE_PREFIX_PATH="%PREFIX_PATH%" -DCMAKE_INSTALL_PREFIX=%INSTALL% ..\..
72+ # Add debug libxml2.dll in the path so that tests can find it
73+ - set TEST_PATH=%RELEASE_LIBXML2_PATH%\ bin
74+ - cmake -G "Visual Studio 12 2013 Win64" -DPYTHON_BINDINGS=OFF -DCMAKE_PREFIX_PATH="%PREFIX_PATH%;%RELEASE_LIBXML2_PATH %" -DCMAKE_INSTALL_PREFIX=%INSTALL% ..\..
7375 # Build, test and install
7476 - cmake --build . --config release
7577 - ctest --build-config release %CTEST_PARAMS%
7678 - cmake --build . --config release --target install
77- - set PATH=%OLD_PATH% && cd ..
79+ - cd ..
7880
7981 # build and test the skeleton plugin against the previously-installed build; this serves as a smoke test of the whole stack
8082 - mkdir skeleton && cd skeleton
8183 # %INSTALL%\lib is where the skeleton plugin is installed (see comment below)
8284 # %INSTALL%\bin is where parameter.dll is installed
83- - set OLD_PATH=%PATH% && set PATH=%APPVEYOR_BUILD_FOLDER%\libxml2-x86_64\bin;%INSTALL%\lib;%INSTALL%\bin;%PATH%
84- - cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL% -DCMAKE_PREFIX_PATH=%INSTALL% %APPVEYOR_BUILD_FOLDER%\skeleton-subsystem
85+ # Also add the path where the release libxml2.dll has been extracted
86+ - set TEST_PATH=%RELEASE_LIBXML2_PATH%\bin;%INSTALL%\lib;%INSTALL%\bin
87+ - cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_INSTALL_PREFIX=%INSTALL% -DCMAKE_PREFIX_PATH=%INSTALL% %APPVEYOR_BUILD_FOLDER%\skeleton-subsystem
8588 # Unfortunately, the skeleton test currently doesn't work on
8689 # multi-configuration build systems (Visual Studio is one of those) without
8790 # installing the plugin
8891 - cmake --build . --config release --target install
8992 - ctest --build-config release %CTEST_PARAMS%
90- - set PATH=%OLD_PATH% && cd ..
9193 - cd ..
0 commit comments