File tree 2 files changed +34
-7
lines changed
2 files changed +34
-7
lines changed Original file line number Diff line number Diff line change
1
+ setlocal
2
+
3
+ IF %language% == cpp GOTO build_cpp
4
+ IF %language% == csharp GOTO build_csharp
5
+
6
+ echo Unsupported language %language% . Exiting.
7
+ goto :error
8
+
9
+ :build_cpp
10
+ echo Building C++
11
+ mkdir build_msvc
12
+ cd build_msvc
13
+ cmake -G " %generator% " -DBUILD_SHARED_LIBS=%BUILD_DLL% ../cmake
14
+ msbuild protobuf.sln /p:Platform=%vcplatform% /logger:" C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || goto error
15
+ cd %configuration%
16
+ tests.exe || goto error
17
+ goto :EOF
18
+
19
+ :build_csharp
20
+ echo Building C#
21
+ cd csharp\src
22
+ nuget restore
23
+ msbuild ProtocolBuffers.sln /p:Platform=" Any CPU" /logger:" C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || goto error
24
+ nunit-console ProtocolBuffers.Test\bin\%configuration% \Google.Protobuf.Test.dll || goto error
25
+ goto :EOF
26
+
27
+ :error
28
+ echo Failed!
29
+ EXIT /b %ERRORLEVEL%
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ configuration:
9
9
10
10
environment :
11
11
matrix :
12
- - BUILD_DLL : ON
12
+ - language : cpp
13
+ BUILD_DLL : ON
14
+
15
+ - language : csharp
13
16
14
17
install :
15
18
- ps : Start-FileDownload https://googlemock.googlecode.com/files/gmock-1.7.0.zip
@@ -23,12 +26,7 @@ before_build:
23
26
- if %platform%==Win64 set vcplatform=x64
24
27
25
28
build_script :
26
- - mkdir build_msvc
27
- - cd build_msvc
28
- - cmake -G "%generator%" -DBUILD_SHARED_LIBS=%BUILD_DLL% ../cmake
29
- - msbuild protobuf.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
30
- - cd %configuration%
31
- - tests.exe
29
+ - CALL appveyor.bat
32
30
33
31
skip_commits :
34
32
message : /.*\[skip appveyor\].*/
You can’t perform that action at this time.
0 commit comments