forked from Stiffstream/restinio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
169 lines (152 loc) · 4.33 KB
/
.travis.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
dist: bionic
sudo: false
language: cpp
branches:
only:
- 0.6-dev
git:
depth: 1
common_packages: &all_packages
- libpcre3-dev
- libpcre2-dev
matrix:
include:
# Clang on osx
- os: osx
osx_image: xcode10.1
compiler: clang
env:
- MATRIX_EVAL="CXX_COMPILER=clang++ C_COMPILER=clang"
- os: osx
osx_image: xcode10.2
compiler: clang
env:
- MATRIX_EVAL="CXX_COMPILER=clang++ C_COMPILER=clang"
# GCC on linux
- os: linux
compiler: gcc
addons:
apt:
packages: *all_packages
env:
- MATRIX_EVAL="CXX_COMPILER=g++ C_COMPILER=gcc"
- os: linux
compiler: gcc
addons:
apt:
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
packages:
- *all_packages
- g++-8
env:
- MATRIX_EVAL="CXX_COMPILER=g++-8 C_COMPILER=gcc-8"
- os: linux
compiler: gcc
addons:
apt:
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
packages:
- *all_packages
- g++-9
env:
- MATRIX_EVAL="CXX_COMPILER=g++-9 C_COMPILER=gcc-9"
# Clang on Linux
- os: linux
compiler: clang
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-5.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- *all_packages
- clang-5.0
env:
- MATRIX_EVAL="CXX_COMPILER=clang++-5.0 C_COMPILER=clang-5.0"
- os: linux
compiler: clang
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- *all_packages
- clang-6.0
env:
- MATRIX_EVAL="CXX_COMPILER=clang++-6.0 C_COMPILER=clang-6.0"
- os: linux
compiler: clang
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- *all_packages
- clang-7
env:
- MATRIX_EVAL="CXX_COMPILER=clang++-7 C_COMPILER=clang-7"
- os: linux
compiler: clang
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- *all_packages
- clang-8
env:
- MATRIX_EVAL="CXX_COMPILER=clang++-8 C_COMPILER=clang-8"
- os: linux
compiler: clang
addons:
apt:
packages:
- *all_packages
- clang-9
- g++-9
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
env:
- MATRIX_EVAL="CXX_COMPILER=clang++-9 C_COMPILER=clang-9"
- os: linux
compiler: clang
addons:
apt:
packages:
- *all_packages
- clang-10
- g++-9
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
env:
- MATRIX_EVAL="CXX_COMPILER=clang++-10 C_COMPILER=clang-10"
before_install:
- eval "${MATRIX_EVAL}"
script:
- gem install Mxx_ru
- mxxruexternals
- mkdir cmake_build_$CXX_COMPILER
- pwd
- cd cmake_build_$CXX_COMPILER
- pwd
- cmake -DCMAKE_INSTALL_PREFIX=target -DCMAKE_C_COMPILER=$C_COMPILER -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_BUILD_TYPE=Release ../dev/
- cmake --build . -j 4
- ctest --output-on-failure
notifications:
email:
recipients: