|
66 | 66 | displayName: 'Test' |
67 | 67 | workingDirectory: build |
68 | 68 |
|
69 | | - - job: ubuntu_16_04 |
| 69 | + - job: macOS |
70 | 70 | displayName: 'Build - macOS' |
71 | 71 | continueOnError: false |
72 | 72 | pool: |
@@ -127,3 +127,65 @@ jobs: |
127 | 127 | make test ARGS="-V" |
128 | 128 | displayName: 'Test' |
129 | 129 | workingDirectory: build |
| 130 | +
|
| 131 | + - job: windows |
| 132 | + displayName: 'Build - Windows' |
| 133 | + continueOnError: false |
| 134 | + pool: |
| 135 | + vmImage: 'windows-latest' |
| 136 | + workspace: |
| 137 | + clean: all |
| 138 | + steps: |
| 139 | + - script: | |
| 140 | + MD build |
| 141 | +
|
| 142 | + ####################################################################################### |
| 143 | + ## Build oatpp |
| 144 | + - script: | |
| 145 | + git clone https://github.com/oatpp/oatpp |
| 146 | + MD oatpp\build |
| 147 | + displayName: 'Checkout - oatpp' |
| 148 | + workingDirectory: build |
| 149 | + - script: | |
| 150 | + cmake -DOATPP_BUILD_TESTS=OFF .. |
| 151 | + cmake --build . --target INSTALL |
| 152 | + displayName: 'Build - oatpp' |
| 153 | + workingDirectory: build\oatpp\build |
| 154 | +
|
| 155 | + ####################################################################################### |
| 156 | + ## Build oatpp-sqlite |
| 157 | + - script: | |
| 158 | + git clone https://github.com/oatpp/oatpp-sqlite |
| 159 | + MD oatpp-sqlite\build |
| 160 | + displayName: 'Checkout - oatpp-sqlite' |
| 161 | + workingDirectory: build |
| 162 | + - script: | |
| 163 | + cmake -DOATPP_SQLITE_AMALGAMATION=ON .. |
| 164 | + cmake --build . --target INSTALL |
| 165 | + displayName: 'Build - oatpp-sqlite' |
| 166 | + workingDirectory: build\oatpp-sqlite\build |
| 167 | +
|
| 168 | + ####################################################################################### |
| 169 | + ## Build oatpp-swagger |
| 170 | + - script: | |
| 171 | + git clone https://github.com/oatpp/oatpp-swagger |
| 172 | + MD oatpp-swagger\build |
| 173 | + displayName: 'Checkout - oatpp-swagger' |
| 174 | + workingDirectory: build |
| 175 | + - script: | |
| 176 | + cmake .. |
| 177 | + cmake --build . --target INSTALL |
| 178 | + displayName: 'Build - oatpp-swagger' |
| 179 | + workingDirectory: build\oatpp-swagger\build |
| 180 | +
|
| 181 | + ####################################################################################### |
| 182 | + ## Build Project |
| 183 | + - script: | |
| 184 | + cmake .. |
| 185 | + cmake --build . |
| 186 | + displayName: 'CMake' |
| 187 | + workingDirectory: build |
| 188 | + - script: | |
| 189 | + crud-test.exe |
| 190 | + displayName: 'Test' |
| 191 | + workingDirectory: build |
0 commit comments