-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.appveyor.yml
59 lines (48 loc) · 1.47 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
51
52
53
54
55
56
57
58
59
image:
- Visual Studio 2019
# Build only on the master branch, and for PRs.
branches:
only:
- master
build:
parallel: true
verbosity: detailed
configuration:
- Debug
- Release
platform:
- x64
environment:
# APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- shared: True
- shared: False
cache:
# - C:\Tools\vcpkg\installed
init:
- echo Appveyor Image = %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set "generator=Visual Studio 16 2019" && set "toolset=v142" )
- echo Generator = %generator%
install:
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- cd %appveyor_build_folder%
- vcpkg install boost-algorithm:%platform%-windows
- vcpkg install boost-smart-ptr:%platform%-windows
- vcpkg install boost-container:%platform%-windows
- vcpkg install boost-core:%platform%-windows
- vcpkg install boost-exception:%platform%-windows
- vcpkg install boost-io:%platform%-windows
- vcpkg install boost-range:%platform%-windows
- vcpkg install boost-signals2:%platform%-windows
- vcpkg install gsl-lite:%platform%-windows
- vcpkg install zlib:%platform%-windows
- vcpkg install gtest:%platform%-windows
build_script:
- mkdir build
- cd build
- cmake -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DTELNETPP_WITH_ZLIB=True -DBUILD_SHARED_LIBS=%shared% ..
- cmake --build . --config %configuration%
test_script:
- ctest . -C %configuration%