forked from Firefly35/cppast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
68 lines (65 loc) · 2.21 KB
/
azure-pipelines.yml
File metadata and controls
68 lines (65 loc) · 2.21 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
name: 'CI build'
trigger:
branches:
include:
- master
- feature/*
paths:
exclude:
- README.md
jobs:
- job: compiler_linux
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
GCC5:
IMAGE: 'conanio/gcc5'
GCC6:
IMAGE: 'conanio/gcc6'
GCC7:
IMAGE: 'conanio/gcc7'
GCC8:
IMAGE: 'conanio/gcc8'
steps:
- script: docker run --privileged -u root -v "$PWD:/cppast" $(IMAGE) bash -c "apt-get -qq update && apt-get -qq install -y --no-install-recommends llvm-4.0-dev clang-4.0 libclang-4.0-dev && cmake /cppast/ && cmake --build . && ctest --output-on-failure -R test"
displayName: "Compiling using $(IMAGE)"
- job: llvm_linux
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
LLVM4:
IMAGE: 'foonathan/micro_cpp_llvm:llvm4'
LLVM5:
IMAGE: 'foonathan/micro_cpp_llvm:llvm5'
LLVM6:
IMAGE: 'foonathan/micro_cpp_llvm:llvm6'
LLVM7:
IMAGE: 'foonathan/micro_cpp_llvm:llvm7'
LLVM8:
IMAGE: 'foonathan/micro_cpp_llvm:llvm8'
steps:
- script: docker run -u root -v "$PWD:/cppast" $(IMAGE) bash -c "cmake -DCMAKE_CXX_COMPILER=clang++ /cppast/ && cmake --build . && ctest --output-on-failure -R test"
displayName: "Compiling using $(IMAGE)"
- job: llvm_macos
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
LLVM4:
URL: 'http://releases.llvm.org/4.0.0/clang+llvm-4.0.0-x86_64-apple-darwin.tar.xz'
EXCLUDE: 'integration'
LLVM5:
URL: 'http://releases.llvm.org/5.0.2/clang+llvm-5.0.2-x86_64-apple-darwin.tar.xz'
LLVM6:
URL: 'http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz'
LLVM7:
URL: 'http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz'
LLVM8:
URL: 'http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-apple-darwin.tar.xz'
steps:
- script: |
mkdir build && cd build/
cmake -DLLVM_DOWNLOAD_URL=$URL ../ && cmake --build . && ctest --output-on-failure -R test -E $EXCLUDE
displayName: "Compiling using $(URL)"