From 52737c2bc8150b5b31ee5523eacd52e802706efc Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Fri, 12 Jun 2015 01:17:04 -0700 Subject: Add appveyor.xml for windows tests. --- appveyor.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 appveyor.yml (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..91862230 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,33 @@ +# Only test one combination: "Visual Studio 12 + Win64 + Debug + DLL". We can +# test more combinations but AppVeyor just takes too long to finish (each +# combination takes ~15mins). +platform: + - Win64 + +configuration: + - Debug + +environment: + matrix: + - BUILD_DLL: ON + +install: + - ps: Start-FileDownload https://googletest.googlecode.com/files/gtest-1.7.0.zip + - 7z x gtest-1.7.0.zip + - rename gtest-1.7.0 gtest + +before_build: + - if %platform%==Win32 set generator=Visual Studio 12 + - if %platform%==Win64 set generator=Visual Studio 12 Win64 + - if %platform%==Win32 set vcplatform=Win32 + - if %platform%==Win64 set vcplatform=x64 + +build_script: + - mkdir build + - cd build + - cmake -G "%generator%" -DBUILD_SHARED_LIBS=%BUILD_DLL% ../cmake + - msbuild protobuf.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + - cd %configuration% + - tests.exe + + -- cgit v1.2.3