-
Notifications
You must be signed in to change notification settings - Fork 19
/
azure-pipelines.yml
81 lines (69 loc) · 1.9 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# Trigger on push to master branch
trigger:
- master
- azure-ci
# Trigger on pull request to master branch
pr:
- master
jobs:
- job:
displayName: Ubuntu-16.04
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
GCC-8 Debug:
CC: gcc-8
CXX: g++-8
Packages: g++-8
BuildType: Debug
GCC-8 Release:
CC: gcc-8
CXX: g++-8
Packages: g++-8
BuildType: Release
GCC-9 Debug:
CC: gcc-9
CXX: g++-9
Packages: g++-9
BuildType: Debug
GCC-9 Release:
CC: gcc-9
CXX: g++-9
Packages: g++-9
BuildType: Release
Clang-6.0 Debug:
CC: clang-6.0
CXX: clang++-6.0
Packages: clang-6.0 libomp5 libomp-dev
BuildType: Debug
Clang-6.0 Release:
CC: clang-6.0
CXX: clang++-6.0
Packages: clang-6.0 libomp5 libomp-dev
BuildType: Release
steps:
- checkout: self
submodules: true
- script: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y $(Packages)
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/$(CC) 100
sudo update-alternatives --set cc /usr/bin/$(CC)
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/$(CXX) 100
sudo update-alternatives --set c++ /usr/bin/$(CXX)
displayName: 'Install Build Dependencies'
- task: CMake@1
displayName: 'CMake .. -DCMAKE_BUILD_TYPE=$(BuildType)'
inputs:
workingDirectory: 'build'
cmakeArgs: '.. -DCMAKE_BUILD_TYPE=$(BuildType)'
- script: make -j -C build
displayName: 'Compiling'
- script: make test -C build
displayName: 'Running tests'