-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
58 lines (47 loc) · 1.57 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# SPDX-FileCopyrightText: Copyright DB Netz AG
# SPDX-License-Identifier: CC0-1.0
trigger:
branches:
include:
- '*'
paths:
include:
- '*'
jobs:
# - job: 'Windows_build'
# pool:
# vmImage: 'windows-latest'
# steps:
# - task: Cache@2
# inputs:
# key: 'vcpkg_archive | "$(Agent.OS)"'
# path: C:/Users/VssAdministrator/AppData/Local/vcpkg/archives/
# displayName: Cache vcpkg archives
# - bash: vcpkg install boost:x64-windows
# displayName: Install boost for Windows
# - bash: vcpkg install protobuf:x64-windows
# displayName: Install protobuf for Windows
# - checkout: self
# submodules: true
# - bash: ./build.sh -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 16 2019" -DOLP_SDK_ENABLE_TESTING=OFF .
# displayName: 'Build sources'
- job: 'Ubuntu_build'
pool:
vmImage: 'ubuntu-20.04'
# name: DigitalRegister
# demands:
# - agent.name -equals $(AGENT_NAME)
steps:
- bash: |
sudo apt-get update -y
sudo apt-get install -y cmake
sudo apt-get install libgmock-dev libgtest-dev
sudo apt-get install -y rapidjson-dev
sudo apt-get install libcurl4-openssl-dev protobuf-compiler libprotobuf-dev libboost-all-dev -y --no-install-recommends --fix-missing
displayName: 'Install dependencies protobuf, curl'
- checkout: self
submodules: true
- bash: ./scripts/build.sh -DCMAKE_BUILD_TYPE=Debug
displayName: 'build sources'
- bash: ./build/dbs-map-api/tests/GoogleTestRunner
displayName: 'run tests'