-
Notifications
You must be signed in to change notification settings - Fork 115
/
azure-pipelines.yml
173 lines (156 loc) · 5.08 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Azure CI build file
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema
trigger:
batch: true
branches:
include:
- master
- ci-test
pr:
autoCancel: true
branches:
include:
- master
jobs:
# ------------------------------------------------------------------------------
# Linux
# ------------------------------------------------------------------------------
# Note: 'agentImage' is the Microsoft-hosted agent. 'containerImage' is the
# Docker container where the build occurs.
# Note: 'containerImage' images are hosted on DockerHub.
# TODO: Move Docker images to ASWF DockerHub account
- job: Linux
strategy:
matrix:
CentOS 7 gcc VFX CY2019:
agentImage: 'ubuntu-16.04'
containerImage: aswfstaging/ci-openexr:2019.0
cxxCompiler: g++
cCompiler: gcc
installSh: ''
# CentOS 7 gcc VFX CY2020:
# agentImage: 'ubuntu-16.04'
# containerImage: aswfstaging/ci-openexr:2020.0
# cxxCompiler: g++
# cCompiler: gcc
# installSh: ''
CentOS 7 Clang 7 VFX CY2019:
agentImage: 'ubuntu-16.04'
containerImage: aswfstaging/ci-openexr:2019.0
cxxCompiler: clang++
cCompiler: clang
installSh: ''
# CentOS 7 Clang 7 VFX CY2020:
# agentImage: 'ubuntu-16.04'
# containerImage: aswfstaging/ci-openexr:2020.0
# cxxCompiler: clang++
# cCompiler: clang
# installSh: ''
pool:
vmImage: $(agentImage)
container: $[ variables['containerImage'] ]
steps:
- template: azure/share/ci/templates/checkout.yml
# - bash: $(installSh)
# displayName: Install dependencies
# condition: and(succeeded(), variables['installSh'])
# - template: azure/share/ci/templates/configure.yml
# parameters:
# cxxCompiler: $(cxxCompiler)
# cCompiler: $(cCompiler)
# - template: azure/share/ci/templates/build.yml
# parameters:
# cxxCompiler: $(cxxCompiler)
# cCompiler: $(cCompiler)
# cmakeOpts: -- -j4
# - task: PublishTestResults@2
# condition: succeededOrFailed()
# displayName: 'Publish test results'
# inputs:
# testResultsFormat: 'cTest'
# testResultsFiles: '**/Test*.xml'
# failTaskOnFailedTests: true
# ------------------------------------------------------------------------------
# SonarCloud static analysis
# ------------------------------------------------------------------------------
# - job: SonarCloud
# displayName: SonarCloud Ubuntu 16.04 VFX CY2019
# condition: in(variables['Build.Reason'], 'Manual', 'Schedule')
# pool:
# vmImage: 'ubuntu-16.04'
# container: aswfstaging/ci-base:2019.0
# steps:
# - template: azure/share/ci/templates/checkout.yml
# - bash: ''
# displayName: Install dependencies
# - template: azure/share/ci/templates/configure.yml
# parameters:
# cxxFlags: -g -O0 -fprofile-arcs -ftest-coverage
# cmakeOpts: |
# -DCMAKE_EXE_LINKER_FLAGS="-lgcov" \
# -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON
# - template: azure/share/ci/templates/build_sonar.yml
# ------------------------------------------------------------------------------
# macOS
# ------------------------------------------------------------------------------
#- job: macOS
# strategy:
# matrix:
# 10.14 AppleClang 10.0:
# agentImage: 'macOS-10.14'
# 10.13 AppleClang 10.0:
# agentImage: 'macOS-10.13'
# pool:
# vmImage: $(agentImage)
#
# steps:
# - template: azure/share/ci/templates/checkout.yml
# - bash: |
# share/ci/scripts/macos/install.sh
# share/ci/scripts/macos/install_python.sh 2.7.16
# displayName: Install dependencies
#
# - template: azure/share/ci/templates/configure.yml
# parameters:
# cmakeOpts: |
# -DPYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python2.7 \
# -DPYTHON_LIBRARY=$(python-config --prefix)/lib/libpython2.7.dylib \
# -DPYTHON_EXECUTABLE=$(which python2)
#
# - template: azure/share/ci/templates/build.yml
# parameters:
# cmakeOpts: -- -j4
# ------------------------------------------------------------------------------
# Windows
# ------------------------------------------------------------------------------
#- job: Windows
# strategy:
# matrix:
# 2016 MSVC 14.16:
# agentImage: 'vs2017-win2016'
# buildSharedLibs: ON
# 2016 MSVC 14.16 (Static):
# agentImage: 'vs2017-win2016'
# buildSharedLibs: OFF
# 2012 MSVC 14.0:
# agentImage: 'vs2015-win2012r2'
# buildSharedLibs: ON
# pool:
# vmImage: $(agentImage)
#
# steps:
# - template: azure/share/ci/templates/checkout.yml
# - powershell: |
# share/ci/scripts/windows/install_python.ps1 2.7.16
# share/ci/scripts/windows/install_cmake.ps1 3.12.4
# displayName: Install dependencies
#
# - template: azure/share/ci/templates/configure.yml
# parameters:
# buildSharedLibs: $(buildSharedLibs)
# verbose: ON
# cmakeOpts: |
# -DCMAKE_GENERATOR_PLATFORM=x64 \
# -DPYTHON_EXECUTABLE=$(which python)
#
# - template: azure/share/ci/templates/build.yml