Skip to content

Commit 7e71302

Browse files
authored
CI: Refactor AppVeyor
- Updates to Visual Studio 2019 image (which runs on Windows Server 2019) - Use msbuild with the build/rpc.sln project instead of CMake --build - Restructure script into before_build, build and test_script parts - Clean up unused variables
1 parent c24e076 commit 7e71302

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

appveyor.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
version: 1.0.{build}
2-
os: Visual Studio 2015
3-
clone_folder: C:\projects\rpc
4-
test: off
1+
image: Visual Studio 2019
2+
configuration: Release
53

64
branches:
75
only:
86
- master
97
- dev
108

11-
configuration:
12-
- Release
13-
14-
environment:
15-
matrix:
16-
- CMAKE_PLATFORM: "Visual Studio 14 2015"
17-
#- CMAKE_PLATFORM: "Visual Studio 15 2017"
18-
19-
install: true
20-
21-
build_script:
22-
- cd c:\projects\rpc
9+
before_build:
2310
- git submodule init
2411
- git submodule update --init --recursive
2512
- md build
2613
- cd build
27-
- cmake -DRPCLIB_BUILD_TESTS=ON -G "%CMAKE_PLATFORM%" ..
28-
- cmake --build . --config %CONFIGURATION%
14+
- cmake .. -DRPCLIB_BUILD_TESTS=ON
15+
16+
build:
17+
project: build/rpc.sln
18+
19+
test_script:
2920
- .\tests\Release\rpc_test.exe

0 commit comments

Comments
 (0)