forked from heremaps/here-data-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
90 lines (83 loc) · 2.32 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
trigger:
- master
pr:
- master
schedules:
- cron: "0 0 * * *"
displayName: Nightly build
branches:
include:
- master
variables:
BUILD_TYPE: "RelWithDebInfo"
jobs:
- job: Commit_checker
pool:
vmImage: 'ubuntu-18.04'
condition: eq(variables['Build.Reason'], 'PullRequest')
steps:
- bash: scripts/misc/commit_checker.sh
displayName: 'Commit checker script'
- job: Windows_build
pool:
vmImage: 'vs2017-win2016'
steps:
- bash: scripts/windows/build.sh
displayName: 'Windows Build'
- job: MacOS_build
pool:
vmImage: 'macOS-10.14'
steps:
- bash: scripts/macos/psv/azure_macos_build_psv.sh
displayName: 'MacOS Build'
- job: iOS_build
pool:
vmImage: 'macOS-10.14'
steps:
- bash: scripts/ios/azure_ios_build_psv.sh
displayName: 'iOS Build'
- job: Android_build
pool:
vmImage: 'ubuntu-20.04'
variables:
LD_PRELOAD: "/lib/x86_64-linux-gnu/libSegFault.so"
SEGFAULT_SIGNALS: "all"
steps:
- bash: env && ls -la $ANDROID_HOME && ls -la $ANDROID_HOME/ndk-bundle
displayName: 'Verification of prerequisites'
- bash: scripts/android/build.sh
displayName: 'Android build and Examples'
- job: Android_Emulator
pool:
vmImage: 'macOS-10.14'
condition: eq(variables['Build.Reason'], 'Manual')
variables:
ANDROID_NDK_HOME: $(ANDROID_HOME)/ndk-bundle
steps:
- bash: ls -la $(ANDROID_NDK_HOME)/build/cmake/android.toolchain.cmake
displayName: 'Verification of cmake script'
- bash: ANDROID_NDK_HOME=$(ANDROID_NDK_HOME) && scripts/android/build-test-emulator.sh
displayName: 'Android Test'
- job: Linux_build_clang
pool:
vmImage: 'ubuntu-20.04'
variables:
LD_PRELOAD: "/lib/x86_64-linux-gnu/libSegFault.so"
SEGFAULT_SIGNALS: "all"
CC: clang-7
CXX: clang++-7
CCACHE_DIR: $(Pipeline.Workspace)/ccache
steps:
- bash: |
sudo apt-get update -y
sudo apt-get install clang-7 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
echo "##vso[task.prependpath]/usr/lib/ccache"
echo week_$(date +%W) > week_number.txt
displayName: 'Install dependencies'
- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)" | ./week_number.txt '
path: $(CCACHE_DIR)
displayName: ccache
- bash: scripts/linux/psv/build_psv.sh
displayName: 'Linux Clang Build'