|
9 | 9 | continueOnError: false |
10 | 10 | pool: |
11 | 11 | vmImage: 'Ubuntu 16.04' |
12 | | - container: |
13 | | - image: lganzzzo/ubuntu-cmake:latest |
14 | 12 | workspace: |
15 | 13 | clean: all |
16 | 14 | steps: |
17 | | - - script: | |
18 | | - sudo /bin/bash ./install-oatpp-modules.sh |
19 | | - displayName: 'install oatpp modules' |
20 | | - workingDirectory: utility |
21 | 15 | - script: | |
22 | 16 | mkdir build |
| 17 | +
|
| 18 | + ####################################################################################### |
| 19 | + ## Build oatpp |
| 20 | + - script: | |
| 21 | + git clone https://github.com/oatpp/oatpp |
| 22 | + mkdir -p oatpp/build |
| 23 | + displayName: 'Checkout - oatpp' |
| 24 | + workingDirectory: build |
| 25 | + - script: | |
| 26 | + cmake .. |
| 27 | + sudo make install |
| 28 | + displayName: 'Build - oatpp' |
| 29 | + workingDirectory: build/oatpp/build |
| 30 | + ####################################################################################### |
| 31 | + ## Build oatpp-sqlite |
| 32 | + - script: | |
| 33 | + git clone https://github.com/oatpp/oatpp-sqlite |
| 34 | + mkdir -p oatpp/build |
| 35 | + displayName: 'Checkout - oatpp-sqlite' |
| 36 | + workingDirectory: build |
| 37 | + - script: | |
| 38 | + cmake -DOATPP_SQLITE_AMALGAMATION=ON .. |
| 39 | + sudo make install |
| 40 | + displayName: 'Build - oatpp-sqlite' |
| 41 | + workingDirectory: build/oatpp-sqlite/build |
| 42 | + ####################################################################################### |
| 43 | + ## Build oatpp-swagger |
| 44 | + - script: | |
| 45 | + git clone https://github.com/oatpp/oatpp-swagger |
| 46 | + mkdir -p oatpp/build |
| 47 | + displayName: 'Checkout - oatpp-swagger' |
| 48 | + workingDirectory: build |
| 49 | + - script: | |
| 50 | + cmake .. |
| 51 | + sudo make install |
| 52 | + displayName: 'Build - oatpp-swagger' |
| 53 | + workingDirectory: build/oatpp-swagger/build |
| 54 | + ####################################################################################### |
| 55 | + ## Build Project |
23 | 56 | - script: | |
24 | 57 | cmake .. |
25 | 58 | sudo make |
26 | | - displayName: 'CMake' |
| 59 | + displayName: 'CMake' |
27 | 60 | workingDirectory: build |
28 | 61 | - script: | |
29 | 62 | make test ARGS="-V" |
30 | | - displayName: 'Test' |
31 | | - workingDirectory: build |
| 63 | + displayName: 'Test' |
| 64 | + workingDirectory: build |
0 commit comments