summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-08-24 20:31:15 +0200
committerJose <jose@zeroc.com>2017-08-24 20:31:15 +0200
commitc006680a3290b501d13e77328616e061e80a4907 (patch)
treeff80cc4ff0cbd01f931acee3fcd6246d145b82cd /appveyor.yml
parentb5d1139733afe8e243f863481c9f3f26f4ec316d (diff)
downloadlibexpat-git-c006680a3290b501d13e77328616e061e80a4907.tar.gz
Add Windows CI with Appveyor Fixes issue #53
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml72
1 files changed, 72 insertions, 0 deletions
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 <jose@zeroc.com>
+# 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