forked from fnc12/sqlite_orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (48 loc) · 1.74 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
# build format
version: "{build}"
skip_branch_with_pr: true
skip_commits:
files:
- .git*
- .travis.yml
- _config.yml
- LICENSE
- '*.md'
- '*.png'
- '*.sh'
image:
- Visual Studio 2017
# configurations to add to build matrix
# TODO: MinGW Makefiles and MSYS Makefiles
configuration:
- Debug
- Release
platform:
- x86
- x64
environment:
matrix:
# using c++14
- SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_14=ON"
# using C++17 (for std::optional support)
- SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_17=ON"
init:
- echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %PLATFORM%
- if "%PLATFORM%"=="x64" (set architecture=-A x64)
- if "%PLATFORM%"=="x86" (set architecture=-A Win32)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set generator="Visual Studio 16 2019" %architecture%)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set generator="Visual Studio 15 2017" %architecture%)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set generator="Visual Studio 14 2015" %architecture%)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set generator="Visual Studio 12 2013" %architecture%)
install:
- C:\Tools\vcpkg\vcpkg integrate install
- vcpkg install sqlite3:%PLATFORM%-windows
# scripts to run before build
before_build:
- mkdir compile
- cd compile
- cmake %SQLITE_ORM_CXX_STANDARD% -DSqliteOrm_BuildTests=ON .. -G %generator% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
# build examples, and run tests (ie make & make test)
build_script:
- cmake --build . --config %configuration%
- ctest --verbose --output-on-failure --build-config %configuration%