Skip to content

Commit d4625f5

Browse files
committed
New Ubuntu build pipeline
1 parent 6537f58 commit d4625f5

File tree

1 file changed

+42
-9
lines changed

1 file changed

+42
-9
lines changed

azure-pipelines.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,56 @@ jobs:
99
continueOnError: false
1010
pool:
1111
vmImage: 'Ubuntu 16.04'
12-
container:
13-
image: lganzzzo/ubuntu-cmake:latest
1412
workspace:
1513
clean: all
1614
steps:
17-
- script: |
18-
sudo /bin/bash ./install-oatpp-modules.sh
19-
displayName: 'install oatpp modules'
20-
workingDirectory: utility
2115
- script: |
2216
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
2356
- script: |
2457
cmake ..
2558
sudo make
26-
displayName: 'CMake'
59+
displayName: 'CMake'
2760
workingDirectory: build
2861
- script: |
2962
make test ARGS="-V"
30-
displayName: 'Test'
31-
workingDirectory: build
63+
displayName: 'Test'
64+
workingDirectory: build

0 commit comments

Comments
 (0)