From: Jose Date: Thu, 24 Aug 2017 18:31:15 +0000 (+0200) Subject: Add Windows CI with Appveyor Fixes issue #53 X-Git-Tag: R_2_2_5~32^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c006680a3290b501d13e77328616e061e80a4907;p=libexpat Add Windows CI with Appveyor Fixes issue #53 --- diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..ef20fd22 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,72 @@ +# Copyright (C) 2017 José Gutiérrez de la Concha +# Licensed under the MIT license + +# scripts that are called at very beginning, before repo cloning +init: +- git config --global core.autocrlf input + +# version format +version: libexpat-{build} + +# set clone depth, clone entire repository history if not defined +clone_depth: 1 + +# clone directory +clone_folder: c:\projects\libexpat + +configuration: Debug + +environment: + matrix: + # Visual Studio 2012 Win32 + - GENERATOR: Visual Studio 11 2012 + PLATFORM: Win32 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 + + # Visual Studio 2012 x64 + - GENERATOR: Visual Studio 11 2012 Win64 + PLATFORM: x64 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 + + # Visual Studio 2013 Win32 + - GENERATOR: Visual Studio 12 2013 + PLATFORM: Win32 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 + + # Visual Studio 2013 x64 + - GENERATOR: Visual Studio 12 2013 Win64 + PLATFORM: x64 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 + + # Visual Studio 2015 Win32 + - GENERATOR: Visual Studio 14 2015 + PLATFORM: Win32 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 + + # Visual Studio 2015 x64 + - GENERATOR: Visual Studio 14 2015 Win64 + PLATFORM: x64 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 + + # Visual Studio 2017 Win32 + - GENERATOR: Visual Studio 15 2017 + PLATFORM: Win32 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + + # Visual Studio 2017 x64 + - GENERATOR: Visual Studio 15 2017 Win64 + PLATFORM: x64 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + +before_build: + - echo Running cmake... + - cd c:\projects\libexpat + - cmake -G"%GENERATOR%" expat + +build: + parallel: true # enable MSBuild parallel builds + project: expat.sln # path to Visual Studio solution or project + +test_script: + - cp Debug\expatd.dll tests\Debug + - tests\Debug\runtests.exe