forked from felixguendling/cista
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
111 lines (108 loc) · 3.05 KB
/
azure-pipelines.yml
File metadata and controls
111 lines (108 loc) · 3.05 KB
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
jobs:
- job: VS2019
strategy:
matrix:
REL:
BUILD_TYPE: Release
DBG:
BUILD_TYPE: Debug
pool:
vmImage: windows-2019
steps:
- task: CMake@1
displayName: 'CMake'
inputs:
cmakeArgs: -G "Visual Studio 16 2019" -A x64 ..
- task: MSBuild@1
displayName: 'Build Solution'
inputs:
solution: build/cista.sln
msbuildArguments: '/m /p:Configuration=$(BUILD_TYPE)'
- script: cista-test
workingDirectory: build\$(BUILD_TYPE)
displayName: Run Tests
- job: LINUX_CLANG
strategy:
matrix:
REL:
BUILD_TYPE: Release
CXXFLAGS: '-stdlib=libc++ -D_LIBCPP_VERSION=1 -march=native'
FUZZ: False
DBG:
BUILD_TYPE: Debug
CXXFLAGS: '-stdlib=libc++ -D_LIBCPP_VERSION=1 -fno-omit-frame-pointer -fsanitize=address'
FUZZ: False
FUZZ:
BUILD_TYPE: Debug
CXXFLAGS: '-stdlib=libc++ -D_LIBCPP_VERSION=1 -fno-omit-frame-pointer'
FUZZ: True
pool:
vmImage: ubuntu-16.04
variables:
CXX: /opt/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang++
LD_LIBRARY_PATH: /opt/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/lib
ASAN_SYMBOLIZER_PATH: /opt/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/llvm-symbolizer
steps:
- script: |
sudo curl -Ls http://releases.llvm.org/8.0.0/clang%2bllvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz -o clang.tar.xz
sudo tar -xf clang.tar.xz -C /opt
- script: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ..
displayName: 'CMake'
- script: make cista-test
workingDirectory: build
displayName: 'Build'
condition: not(eq(variables['FUZZ'], 'True'))
- script: make cista-fuzz
workingDirectory: build
displayName: 'Build & Execute Fuzzing'
condition: eq(variables['FUZZ'], 'True')
- script: ./cista-test
workingDirectory: build
displayName: 'Run Tests'
condition: not(eq(variables['FUZZ'], 'True'))
- job: LINUX_GCC
strategy:
matrix:
REL:
BUILD_TYPE: Release
CXXFLAGS: '-march=native'
DBG:
BUILD_TYPE: Debug
CXXFLAGS: '-D_LIBCPP_VERSION=1 -fno-omit-frame-pointer -fsanitize=address'
pool:
vmImage: ubuntu-16.04
variables:
CXX: g++-8
steps:
- script: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y --no-install-recommends g++-8
- script: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ..
displayName: 'CMake'
- script: make cista-test
workingDirectory: build
displayName: 'Build'
- script: ./cista-test
workingDirectory: build
displayName: 'Run Tests'
- job: POWERPC
pool:
vmImage: ubuntu-16.04
variables:
ROOT_DIR: /ppc-root
steps:
- script: |
docker run \
-v "$PWD:/repo" \
-e "CXXFLAGS=-static" \
--rm \
felixguendling/cross-build-cpp \
bash -c "cmake-ppc /repo && ninja cista-test && qemu-ppc-static cista-test"
displayName: 'Build & Run Tests'