|
1 |
| -# build format |
2 |
| -version: "{build}" |
3 |
| - |
4 |
| -skip_branch_with_pr: true |
5 |
| -skip_commits: |
6 |
| - files: |
7 |
| - - .git* |
8 |
| - - .travis.yml |
9 |
| - - _config.yml |
10 |
| - - LICENSE |
11 |
| - - '*.md' |
12 |
| - - '*.png' |
13 |
| - - '*.sh' |
14 |
| - |
15 |
| -image: |
16 |
| - - Visual Studio 2017 |
17 |
| - |
18 |
| -# configurations to add to build matrix |
19 |
| -# TODO: MinGW Makefiles and MSYS Makefiles |
20 |
| -configuration: |
21 |
| - - Debug |
22 |
| - - Release |
23 |
| - |
24 |
| -platform: |
25 |
| - - x86 |
26 |
| - - x64 |
27 |
| - |
28 |
| -environment: |
29 |
| - matrix: |
30 |
| - # using c++14 |
31 |
| - - SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_14=ON" |
32 |
| - |
33 |
| - # using C++17 (for std::optional support) |
34 |
| - - SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_17=ON" |
35 |
| - |
36 |
| -init: |
37 |
| - - echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %PLATFORM% |
38 |
| - - if "%PLATFORM%"=="x64" (set architecture=-A x64) |
39 |
| - - if "%PLATFORM%"=="x86" (set architecture=-A Win32) |
40 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set generator="Visual Studio 16 2019" %architecture%) |
41 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set generator="Visual Studio 15 2017" %architecture%) |
42 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set generator="Visual Studio 14 2015" %architecture%) |
43 |
| - - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set generator="Visual Studio 12 2013" %architecture%) |
44 |
| - |
45 |
| -install: |
46 |
| - - C:\Tools\vcpkg\vcpkg integrate install |
47 |
| - - vcpkg install sqlite3:%PLATFORM%-windows |
48 |
| - |
49 |
| -# scripts to run before build |
50 |
| -before_build: |
51 |
| - - mkdir compile |
52 |
| - - cd compile |
53 |
| - - cmake %SQLITE_ORM_CXX_STANDARD% -DSqliteOrm_BuildTests=ON .. -G %generator% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake |
54 |
| - |
55 |
| -# build examples, and run tests (ie make & make test) |
56 |
| -build_script: |
57 |
| - - cmake --build . --config %configuration% |
58 |
| - - ctest --verbose --output-on-failure --build-config %configuration% |
| 1 | +# build format |
| 2 | +version: "{build}" |
| 3 | + |
| 4 | +skip_branch_with_pr: true |
| 5 | +skip_commits: |
| 6 | + files: |
| 7 | + - .git* |
| 8 | + - .travis.yml |
| 9 | + - _config.yml |
| 10 | + - LICENSE |
| 11 | + - '*.md' |
| 12 | + - '*.png' |
| 13 | + - '*.sh' |
| 14 | + |
| 15 | +# configurations to add to build matrix |
| 16 | +configuration: |
| 17 | + #- Debug |
| 18 | + - Release |
| 19 | + |
| 20 | +environment: |
| 21 | + appveyor_yml_disable_ps_linux: true |
| 22 | + matrix: |
| 23 | + - job_name: clang, C++14 |
| 24 | + appveyor_build_worker_image: Ubuntu |
| 25 | + CC: clang |
| 26 | + CXX: clang++ |
| 27 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_14=ON" |
| 28 | + |
| 29 | + - job_name: gcc, C++14 |
| 30 | + appveyor_build_worker_image: Ubuntu |
| 31 | + CC: gcc |
| 32 | + CXX: g++ |
| 33 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_14=ON" |
| 34 | + |
| 35 | + # Representative for C++14 |
| 36 | + - job_name: Visual Studio 2015 Update 3, x64, C++14 |
| 37 | + appveyor_build_worker_image: Visual Studio 2015 |
| 38 | + platform: x64 |
| 39 | + SQLITE_ORM_CXX_STANDARD: "" |
| 40 | + |
| 41 | + - job_name: clang, C++17 |
| 42 | + appveyor_build_worker_image: Ubuntu |
| 43 | + CC: clang |
| 44 | + CXX: clang++ |
| 45 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_17=ON" |
| 46 | + |
| 47 | + - job_name: clang, C++20 |
| 48 | + appveyor_build_worker_image: Ubuntu |
| 49 | + CC: clang |
| 50 | + CXX: clang++ |
| 51 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_20=ON" |
| 52 | + |
| 53 | + - job_name: gcc, C++17 |
| 54 | + appveyor_build_worker_image: Ubuntu |
| 55 | + CC: gcc |
| 56 | + CXX: g++ |
| 57 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_17=ON" |
| 58 | + |
| 59 | + - job_name: gcc, C++20 |
| 60 | + appveyor_build_worker_image: Ubuntu |
| 61 | + CC: gcc |
| 62 | + CXX: g++ |
| 63 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_20=ON" |
| 64 | + |
| 65 | + - job_name: Visual Studio 2022, x64, C++17 |
| 66 | + appveyor_build_worker_image: Visual Studio 2022 |
| 67 | + platform: x64 |
| 68 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_17=ON" |
| 69 | + |
| 70 | + - job_name: Visual Studio 2022, x64, C++20 |
| 71 | + appveyor_build_worker_image: Visual Studio 2022 |
| 72 | + platform: x64 |
| 73 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_20=ON" |
| 74 | + |
| 75 | + - job_name: Visual Studio 2022, x86, C++20 |
| 76 | + appveyor_build_worker_image: Visual Studio 2022 |
| 77 | + platform: x86 |
| 78 | + SQLITE_ORM_CXX_STANDARD: "-DSQLITE_ORM_ENABLE_CXX_20=ON" |
| 79 | + |
| 80 | +matrix: |
| 81 | + fast_finish: true |
| 82 | + |
| 83 | +for: |
| 84 | +- |
| 85 | + # Windows |
| 86 | + matrix: |
| 87 | + only: |
| 88 | + - appveyor_build_worker_image: Visual Studio 2015 |
| 89 | + - appveyor_build_worker_image: Visual Studio 2022 |
| 90 | + init: |
| 91 | + - |- |
| 92 | + echo %appveyor_build_worker_image% - %platform% - %configuration% |
| 93 | + if "%platform%"=="x64" (set architecture=-A x64) |
| 94 | + if "%platform%"=="x86" (set architecture=-A Win32) |
| 95 | + if "%appveyor_build_worker_image%"=="Visual Studio 2022" (set generator="Visual Studio 17 2022" %architecture%) |
| 96 | + if "%appveyor_build_worker_image%"=="Visual Studio 2015" (set generator="Visual Studio 14 2015" %architecture%) |
| 97 | + install: |
| 98 | + - |- |
| 99 | + C:\Tools\vcpkg\vcpkg integrate install |
| 100 | + vcpkg install sqlite3:%platform%-windows |
| 101 | + before_build: |
| 102 | + - |- |
| 103 | + mkdir compile |
| 104 | + cd compile |
| 105 | + cmake %SQLITE_ORM_CXX_STANDARD% -DSqliteOrm_BuildTests=ON .. -G %generator% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 106 | + # build examples, and run tests (ie make & make test) |
| 107 | + build_script: |
| 108 | + - |- |
| 109 | + cmake --build . --config %configuration% |
| 110 | + ctest --verbose --output-on-failure --build-config %configuration% |
| 111 | +
|
| 112 | +- |
| 113 | + # Linux |
| 114 | + matrix: |
| 115 | + only: |
| 116 | + - appveyor_build_worker_image: Ubuntu |
| 117 | + init: |
| 118 | + - |- |
| 119 | + echo $appveyor_build_worker_image |
| 120 | + $CXX --version |
| 121 | + # using custom vcpkg triplets for building and linking dynamic dependent libraries |
| 122 | + install: |
| 123 | + - |- |
| 124 | + $HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets |
| 125 | + vcpkg install sqlite3 --overlay-triplets=vcpkg/triplets |
| 126 | + before_build: |
| 127 | + - |- |
| 128 | + mkdir compile |
| 129 | + cd compile |
| 130 | + cmake $SQLITE_ORM_CXX_STANDARD -DSqliteOrm_BuildTests=ON .. -DCMAKE_TOOLCHAIN_FILE=$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 131 | + # build examples, and run tests (ie make & make test) |
| 132 | + build_script: |
| 133 | + - |- |
| 134 | + cmake --build . |
| 135 | + ctest --verbose --output-on-failure |
| 136 | +- |
| 137 | + # macOS |
| 138 | + matrix: |
| 139 | + only: |
| 140 | + - appveyor_build_worker_image: macOS |
| 141 | + init: |
| 142 | + - |- |
| 143 | + echo $appveyor_build_worker_image |
| 144 | + $CXX --version |
| 145 | + # using custom vcpkg triplets for building and linking dynamic dependent libraries |
| 146 | + install: |
| 147 | + - |- |
| 148 | + git clone --depth 1 --branch 2022.05.10 https://github.com/microsoft/vcpkg.git $HOME/vcpkg |
| 149 | + $HOME/vcpkg/booststrap.sh |
| 150 | + $HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets |
| 151 | + vcpkg install sqlite3 --overlay-triplets=vcpkg/triplets |
| 152 | + before_build: |
| 153 | + - |- |
| 154 | + mkdir compile |
| 155 | + cd compile |
| 156 | + cmake $SQLITE_ORM_CXX_STANDARD -DSqliteOrm_BuildTests=ON .. -DCMAKE_TOOLCHAIN_FILE=$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 157 | + # build examples, and run tests (ie make & make test) |
| 158 | + build_script: |
| 159 | + - |- |
| 160 | + cmake --build . |
| 161 | + ctest --verbose --output-on-failure |
0 commit comments