Skip to content

Commit eb17b27

Browse files
committed
azure-pipelines.yml add Windows build
1 parent 19d8e93 commit eb17b27

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

azure-pipelines.yml

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
displayName: 'Test'
6767
workingDirectory: build
6868
69-
- job: ubuntu_16_04
69+
- job: macOS
7070
displayName: 'Build - macOS'
7171
continueOnError: false
7272
pool:
@@ -127,3 +127,65 @@ jobs:
127127
make test ARGS="-V"
128128
displayName: 'Test'
129129
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

Comments
 (0)