forked from quinoacomputing/quinoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure.yml
84 lines (83 loc) · 2.35 KB
/
.azure.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
# Docker image
# Build a Docker image to deploy, run, or push to a container registry.
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
jobs:
- job: "Quinoa"
timeoutInMinutes: 180
pool:
vmImage: 'Ubuntu 16.04'
variables:
imageName: 'quinoa-azure:$(build.buildId)'
strategy:
matrix:
gnu-debug:
COMPILER: 'gnu'
BUILD: 'Debug'
DISTRO: 'debian-gnu'
gnu-debug-static:
COMPILER: 'gnu'
BUILD: 'Debug'
SHARED_LIBS: 'off'
DISTRO: 'debian-gnu-static'
gnu-release:
COMPILER: 'gnu'
BUILD: 'Release'
DISTRO: 'debian-gnu'
gnu-release-static:
COMPILER: 'gnu'
BUILD: 'Release'
SHARED_LIBS: 'off'
DISTRO: 'debian-gnu-static'
gnu-debug-smp:
COMPILER: 'gnu'
BUILD: 'Debug'
DISTRO: 'debian-gnu-smp'
SMP: 'on'
gnu-release-smp:
COMPILER: 'gnu'
BUILD: 'Release'
DISTRO: 'debian-gnu-smp'
SMP: 'on'
clang-debug:
COMPILER: 'clang'
BUILD: 'Debug'
DISTRO: 'debian-clang'
clang-debug-static:
COMPILER: 'clang'
BUILD: 'Debug'
SHARED_LIBS: 'off'
DISTRO: 'debian-clang-static'
clang-release:
COMPILER: 'clang'
BUILD: 'Release'
DISTRO: 'debian-clang'
clang-release-static:
COMPILER: 'clang'
BUILD: 'Release'
SHARED_LIBS: 'off'
DISTRO: 'debian-clang-static'
clang-debug-smp:
COMPILER: 'clang'
BUILD: 'Debug'
DISTRO: 'debian-clang-smp'
SMP: 'on'
clang-release-smp:
COMPILER: 'clang'
BUILD: 'Release'
DISTRO: 'debian-clang-smp'
SMP: 'on'
doc:
DOC: true
DISTRO: 'debian-doc'
steps:
- bash: |
sed -i "/^FROM/s/debian/${DISTRO}/" tools/docker/Dockerfile.quinoa-build-azure
docker build \
--build-arg COMPILER=${COMPILER} \
--build-arg BUILD=${BUILD} \
--build-arg DOC=${DOC} \
--build-arg SHARED_LIBS="${SHARED_LIBS}" \
--build-arg SMP=${SMP} \
--rm=false -f tools/docker/Dockerfile.quinoa-build-azure -t ${DISTRO} .
displayName: 'Build & Test'