Commit 6ce1bcb3966835530de65f33402b49fc89ac37f3

Daniel Mendler 2019-05-26T09:36:07

add appveyor.yml: test both vc2015 and vc2017

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..bdf408d
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,11 @@
+version: 1.0.{build}
+image:
+- Visual Studio 2017
+- Visual Studio 2015
+build_script:
+- cmd: >-
+    if "Visual Studio 2017"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
+    if "Visual Studio 2015"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
+    if "Visual Studio 2015"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
+    nmake -f makefile.msvc all
+    test.exe