-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
50 lines (39 loc) · 1.17 KB
/
appveyor.yml
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
49
50
# version string format
version: "{build}"
image: Visual Studio 2017
# clone directory
clone_folder: C:\projects\polylineencoder
init:
- git config --global core.autocrlf input
# branches to build
branches:
# whitelist
only:
- master
platform:
- Win32
- x64
# build Configurations, i.e. Debug, Release, etc.
configuration:
- Debug
- Release
build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
# Build the GTest
- git clone --branch release-1.10.0 https://github.com/google/googletest.git
- cd googletest
- mkdir build && cd build
- cmake .. -DBUILD_SHARED_LIBS=ON -DINSTALL_GTEST=ON -DCMAKE_INSTALL_PREFIX:PATH=. -G "NMake Makefiles"
- nmake
- nmake install
# Configure CMake to find the GTest.
- set CMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\build\googletest\build
- cd %APPVEYOR_BUILD_FOLDER%\build
- cmake .. -G "NMake Makefiles" -DENABLE_TESTING=True
- cmake --build . --config Release
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build
- ctest -C Release