-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
72 lines (65 loc) · 2.09 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
72
version: '{build}'
branches:
only:
- master
clone_folder: c:\projects\litesql
image:
# - Visual Studio 2013
# - Visual Studio 2015
- Visual Studio 2017
- Visual Studio 2019
configuration:
- Release
- Debug
platform:
- x64
environment:
matrix:
- arch: Win64
# - arch: #does not work, Release|x64 not a valid target
matrix:
fast_finish: false
install:
##################################################
# Install packages for docs.
# DRi#4000: choco fails to download doxygen.portable so we install ourselves:
- appveyor DownloadFile http://doxygen.nl/files/doxygen-1.8.19.windows.x64.bin.zip
- 7z x doxygen-1.8.19.windows.x64.bin.zip -oc:\projects\install\doxygen > nul
- set PATH=c:\projects\install\doxygen;%PATH%
# skip unsupported combinations
init:
- set arch=
- if "%arch%"=="Win64" ( set arch= Win64)
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
#- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
#- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
- echo %generator%
before_build:
- cmd: |-
mkdir build
cd build
cmake --version
cmake .. -D LITESQL_USE_SYSTEM_EXPAT:bool=OFF -D LITESQL_USE_SYSTEM_SQLITE:bool=OFF -D LITESQL_WITH_DOCS:bool=ON -D LITESQL_WITH_MYSQL:bool=OFF -D LITESQL_WITH_SQLITE:bool=ON -D LITESQL_WITH_TESTS:bool=ON -D LITESQL_WITH_UI:bool=OFF -D LITESQL_MSVC_MT:BOOL=ON -G %generator%
build_script:
- cmake --build . --target ALL_BUILD
- cmake --build . --target doc
- cmake --build . --target package
- cpack --config CPackSourceConfig.cmake
#test_script:
# - cd build
# - set CTEST_OUTPUT_ON_FAILURE=1
# - ctest -C %configuration%
# - cd ..
#build:
# project: c:\projects\litesql\build\litesql.sln
# verbosity: minimal
# parallel: true
only_commits:
files:
- CMakeLists.txt
- appveyor.yml
- src/
- cmake/