From 8bff268ba84c67a1ac2761679457532439da482b Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 12 Mar 2016 11:04:37 +0100 Subject: Test with multiple MSVC versions under Appveyor --- appveyor.yml | 6 ++++-- tools/appveyor-build.bat | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tools/appveyor-build.bat diff --git a/appveyor.yml b/appveyor.yml index d86785b..0259323 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,14 +2,16 @@ environment: PYTHON: "C:\\Python34-x64" PYTHON_VERSION: "3.4.3" PYTHON_ARCH: "64" + matrix: + - MSVC_VERSION: 10 + - MSVC_VERSION: 12 # set up for nmake: install: - - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64' - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" build_script: - - 'nmake' + - 'tools\appveyor-build.bat' test_script: - 'nmake test' diff --git a/tools/appveyor-build.bat b/tools/appveyor-build.bat new file mode 100644 index 0000000..73d555b --- /dev/null +++ b/tools/appveyor-build.bat @@ -0,0 +1,13 @@ +@echo off + +if "%MSVC_VERSION%" == "10" goto msvc10 + +call "C:\Program Files (x86)\Microsoft Visual Studio %MSVC_VERSION%.0\VC\vcvarsall.bat" amd64 +goto build + +:msvc10 +call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 + +:build +nmake + -- cgit v1.2.3