|
1 |
| -# Copyright (c) 2012-2020 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 |
| -image: |
11 |
| - - Visual Studio 2019 |
12 |
| - - Visual Studio 2017 |
13 |
| - - Visual Studio 2015 |
14 |
| - - Visual Studio 2013 |
15 |
| - |
16 |
| -# configurations to add to build matrix |
17 |
| -# TODO: MinGW Makefiles and MSYS Makefiles |
18 |
| -configuration: |
19 |
| - - Debug |
20 |
| - - Release |
21 |
| - |
22 |
| -environment: |
23 |
| - matrix: |
24 |
| - - arch: Win32 |
25 |
| - - arch: x64 |
26 |
| - |
27 |
| -init: |
28 |
| - - echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %arch% |
29 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set vs=Visual Studio 15 2017) |
30 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set vs=Visual Studio 14 2015) |
31 |
| - - if "%arch%"=="x64" (set generator="%vs% Win64") else (set generator="%vs%") |
32 |
| - # CMake uses a different grammar for Visual Studio 2019, with -A to specify architecture: |
33 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set generator="Visual Studio 16 2019" -A %arch%) |
34 |
| - - echo %generator% |
35 |
| - |
36 |
| -# scripts to run before build |
37 |
| -before_build: |
38 |
| - - mkdir build |
39 |
| - - cd build |
40 |
| - - cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF .. -G %generator% |
41 |
| - |
42 |
| -# build examples, and run tests (ie make & make test) |
43 |
| -build_script: |
44 |
| - - cmake --build . --config %configuration% |
45 |
| - - ctest --output-on-failure |
| 1 | +# Copyright (c) 2012-2020 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 | +image: |
| 11 | + - Visual Studio 2019 |
| 12 | + - Visual Studio 2017 |
| 13 | + - Visual Studio 2015 |
| 14 | + |
| 15 | +# configurations to add to build matrix |
| 16 | +# TODO: MinGW Makefiles and MSYS Makefiles |
| 17 | +configuration: |
| 18 | + - Debug |
| 19 | + - Release |
| 20 | + |
| 21 | +environment: |
| 22 | + matrix: |
| 23 | + - arch: Win32 |
| 24 | + - arch: x64 |
| 25 | + |
| 26 | +init: |
| 27 | + - echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %arch% |
| 28 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set vs=Visual Studio 15 2017) |
| 29 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set vs=Visual Studio 14 2015) |
| 30 | + - if "%arch%"=="x64" (set generator="%vs% Win64") else (set generator="%vs%") |
| 31 | + # CMake uses a different grammar for Visual Studio 2019, with -A to specify architecture: |
| 32 | + - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set generator="Visual Studio 16 2019" -A %arch%) |
| 33 | + - echo %generator% |
| 34 | + |
| 35 | +# scripts to run before build |
| 36 | +before_build: |
| 37 | + - mkdir build |
| 38 | + - cd build |
| 39 | + - cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF .. -G %generator% |
| 40 | + |
| 41 | +# build examples, and run tests (ie make & make test) |
| 42 | +build_script: |
| 43 | + - cmake --build . --config %configuration% |
| 44 | + - ctest --output-on-failure |
0 commit comments