forked from skyformat99/gayrpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
48 lines (41 loc) · 1.65 KB
/
Copy pathappveyor.yml
File metadata and controls
48 lines (41 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: 1.1.0.{build}
configuration:
- Release
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VS_VERSION: 15 2017
VS_PLATFORM: win32
before_build:
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg integrate install
- vcpkg install brynet --head
- vcpkg install protobuf:x86-windows
- vcpkg install protobuf:x64-windows
- SET PATH=C:\Tools\vcpkg\installed\x86-windows\tools\protobuf;%PATH%
- SET PATH=C:\Tools\vcpkg\installed\x86-windows\lib;%PATH%
- SET PATH=C:\Tools\vcpkg\installed\x64-windows\lib;%PATH%
- SET APPVEYOR_CI=1
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
- cd %APPVEYOR_BUILD_FOLDER%/src
- protoc -I. -IC:\Tools\vcpkg\installed\x86-windows\include --cpp_out=. ./gayrpc/core/gayrpc_meta.proto ./gayrpc/core/gayrpc_option.proto
- cd %APPVEYOR_BUILD_FOLDER%/examples/echo/pb
- protoc -I. -I../../../src -IC:\Tools\vcpkg\installed\x86-windows\include --cpp_out=. echo_service.proto
- cd %APPVEYOR_BUILD_FOLDER%/examples/benchmark/pb
- protoc -I. -I../../../src -IC:\Tools\vcpkg\installed\x86-windows\include --cpp_out=. benchmark_service.proto
- cd %APPVEYOR_BUILD_FOLDER%/tests/pb
- protoc -I. -I../../src -IC:\Tools\vcpkg\installed\x86-windows\include --cpp_out=. echo_service.proto
- cd %APPVEYOR_BUILD_FOLDER%
- echo Running cmake...
- cmake -DCMAKE_GENERATOR_PLATFORM=%VS_PLATFORM% -DCMAKE_TOOLCHAIN_FILE=c:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake . -G "Visual Studio %VS_VERSION%"
build:
project: gayrpc.sln
parallel: true
verbosity: minimal
test_script:
- cd tests
- ctest -V -C %CONFIGURATION%