-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
71 lines (59 loc) · 2.08 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
60
61
62
63
64
65
66
67
68
69
70
71
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:
# currently disabled due to a problem linking: see issue #262
# - 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-any:%platform%-windows
- vcpkg install boost-asio:%platform%-windows
- vcpkg install boost-container-hash:%platform%-windows
- vcpkg install boost-core:%platform%-windows
- vcpkg install boost-range:%platform%-windows
- vcpkg install boost-scope-exit:%platform%-windows
- vcpkg install boost-signals2:%platform%-windows
- vcpkg install boost-smart-ptr:%platform%-windows
- vcpkg install boost-spirit:%platform%-windows
- vcpkg install gsl-lite:%platform%-windows
- vcpkg install fmt:%platform%-windows
- vcpkg install nlohmann-json:%platform%-windows
- vcpkg install gtest:%platform%-windows
- mkdir c:\Source
- cd C:\Source
- git clone https://github.com/KazDragon/terminalpp
- cd terminalpp
- cmake -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DTERMINALPP_WITH_TESTS=False -DCMAKE_INSTALL_PREFIX=C:/Libraries -DBUILD_SHARED_LIBS=%shared% .
- cmake --build . --config %configuration%
- cmake --install . --config %configuration%
build_script:
- cd %appveyor_build_folder%
- mkdir build
- cd build
- cmake -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_PREFIX_PATH=C:/Libraries -DBUILD_SHARED_LIBS=%shared% ..
- cmake --build . --config %configuration%
test_script:
- ctest . --output-on-failure -C %configuration%