|
1 | | -# Copyright (c) 2012-2022 Sebastien Rombauts ([email protected]) |
2 | | - |
3 | | -# build format |
4 | | -version: "{build}" |
5 | | - |
6 | | -# scripts that run after cloning repository |
7 | | -install: |
8 | | - - git submodule update --init --recursive |
9 | | - |
| 1 | +# Copyright (c) 2012-2023 Sebastien Rombauts ([email protected]) |
| 2 | + |
| 3 | +# build format |
| 4 | +version: "{build}" |
| 5 | + |
| 6 | +# scripts that run after cloning repository |
| 7 | +install: |
| 8 | + - git submodule update --init --recursive |
| 9 | + |
10 | 10 | image: |
11 | | -# Reduce the number of images to test on AppVeyor, to speed up the build |
12 | | - - Visual Studio 2022 |
13 | | -# - Visual Studio 2019 |
14 | | -# - Visual Studio 2017 |
15 | | - - Visual Studio 2015 |
16 | | - |
17 | | -# configurations to add to build matrix |
18 | | -# TODO: MinGW Makefiles and MSYS Makefiles |
19 | | -configuration: |
20 | | - - Debug |
21 | | - - Release |
22 | | - |
23 | | -environment: |
24 | | - matrix: |
25 | | - - arch: Win32 |
26 | | - - arch: x64 |
27 | | - |
28 | | -init: |
29 | | - - echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %arch% |
30 | | - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set vs=Visual Studio 15 2017) |
31 | | - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set vs=Visual Studio 14 2015) |
32 | | - - if "%arch%"=="x64" (set generator="%vs% Win64") else (set generator="%vs%") |
33 | | - # CMake uses a different grammar for Visual Studio 2019, with -A to specify architecture: |
34 | | - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set generator="Visual Studio 16 2019" -A %arch%) |
35 | | - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" (set generator="Visual Studio 17 2022" -A %arch%) |
36 | | - - echo %generator% |
37 | | - |
38 | | -# scripts to run before build |
39 | | -before_build: |
40 | | - - mkdir build |
41 | | - - cd build |
42 | | - - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF .. -G %generator% |
43 | | - |
44 | | -# build examples, and run tests (ie make & make test) |
45 | | -build_script: |
46 | | - - cmake --build . --config %configuration% |
47 | | - - ctest --output-on-failure |
| 11 | +# Reduce the number of images to test on AppVeyor, to speed up the build |
| 12 | + - Visual Studio 2022 |
| 13 | +# - Visual Studio 2019 |
| 14 | +# - Visual Studio 2017 |
| 15 | + - Visual Studio 2015 |
| 16 | + |
| 17 | +# configurations to add to build matrix |
| 18 | +# TODO: MinGW Makefiles and MSYS Makefiles |
| 19 | +configuration: |
| 20 | + - Debug |
| 21 | + - Release |
| 22 | + |
| 23 | +environment: |
| 24 | + matrix: |
| 25 | + - arch: Win32 |
| 26 | + - arch: x64 |
| 27 | + |
| 28 | +init: |
| 29 | + - echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %arch% |
| 30 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set vs=Visual Studio 15 2017) |
| 31 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set vs=Visual Studio 14 2015) |
| 32 | + - if "%arch%"=="x64" (set generator="%vs% Win64") else (set generator="%vs%") |
| 33 | + # CMake uses a different grammar for Visual Studio 2019, with -A to specify architecture: |
| 34 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set generator="Visual Studio 16 2019" -A %arch%) |
| 35 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" (set generator="Visual Studio 17 2022" -A %arch%) |
| 36 | + - echo %generator% |
| 37 | + |
| 38 | +# scripts to run before build |
| 39 | +before_build: |
| 40 | + - mkdir build |
| 41 | + - cd build |
| 42 | + - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF .. -G %generator% |
| 43 | + |
| 44 | +# build examples, and run tests (ie make & make test) |
| 45 | +build_script: |
| 46 | + - cmake --build . --config %configuration% |
| 47 | + - ctest --output-on-failure |
0 commit comments