diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..67299dd --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,48 @@ +# Repo as zip +shallow_clone: true + +os: + - Visual Studio 2015 Update 2 + +environment: + CTEST_OUPTUT_ON_FAILURE: ON + +build: + verbosity: detailed + +configuration: + - Debug + +branches: + except: + - gh-pages + +install: + ############################################################################ + # All external dependencies are installed in C:\projects\deps + ############################################################################ + - mkdir C:\projects\deps + - cd C:\projects\deps + + ############################################################################ + # Install a recent CMake + ############################################################################ + - set CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.0-win32-x86.zip" + - appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip + - 7z x cmake.zip -oC:\projects\deps\cmake > nul + - set PATH=C:\projects\deps\cmake\bin;%PATH% + - cmake --version + +before_build: + - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 + - cd %APPVEYOR_BUILD_FOLDER% + +build: + - mkdir build + - cd build + - cmake .. + - cmake --build . + +test: + test_script: + - cmake --build --target test .