forked from boostorg/beast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
157 lines (143 loc) · 3.5 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
#
# Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Official repository: https://github.com/boostorg/beast
#
sudo: false
language: cpp
addons:
apt:
sources: &base_sources
- ubuntu-toolchain-r-test
packages: &base_packages
- python-software-properties
- libffi-dev
- libstdc++6
- binutils-gold
# Provides a backtrace if the unittests crash
- gdb
matrix:
include:
# GCC 6.0, Debug + Coverage
- os: linux
compiler: g++-6
env:
- VARIANT=beast_coverage
- TOOLSET=gcc
- COMPILER=g++-6
- CXXSTD=14
before_install:
- pip install --user https://github.com/codecov/codecov-python/archive/master.zip
addons:
apt:
packages:
- g++-6
- lcov
- libssl-dev
- *base_packages
sources:
- *base_sources
# Default clang++ with libc++
- os: linux
compiler: clang++-libc++
env:
- VARIANT=debug
- TOOLSET=clang
- COMPILER=clang++-libc++
- CXXSTD=11
- CXX_FLAGS="<cxxflags>-stdlib=libc++ <linkflags>-stdlib=libc++"
addons:
apt:
packages:
- libc++-dev
# Default g++
- os: linux
compiler: g++
env:
- VARIANT=release
- TOOLSET=gcc
- COMPILER=g++
- CXXSTD=11
# GCC 8, C++17, libstdc++, release
- os: linux
compiler: g++-8
env:
- VARIANT=release
- TOOLSET=gcc
- COMPILER=g++-8
- CXXSTD=17
addons:
apt:
packages:
- g++-8
- *base_packages
sources:
- *base_sources
# GCC 5.0, Valgrind
- os: linux
compiler: g++-5
env:
- VARIANT=beast_valgrind
- TOOLSET=gcc
- COMPILER=g++-5
- CXXSTD=11
addons:
apt:
packages:
- g++-5
- libssl-dev
- valgrind
- *base_packages
sources:
- *base_sources
# Clang 3.8, UBasan
- os: linux
compiler: clang++-3.8
env:
- VARIANT=beast_ubasan
- TOOLSET=clang
- COMPILER=clang++-3.8
- CXXSTD=11
- UBSAN_OPTIONS='print_stacktrace=1'
- PATH=$PWD/llvm-$LLVM_VERSION/bin:$PATH
addons:
apt:
packages:
- clang-3.8
- libssl-dev
- *base_packages
sources:
- llvm-toolchain-precise-3.8
- *base_sources
# OSX Clang, C++14, libc++, debug,
# - if: branch != master
- os: osx
compiler: clang++
env:
- VARIANT=debug
- TOOLSET=clang
- COMPILER=clang++
- CXXSTD=14
before_install:
- export OPENSSL_ROOT=$(brew --prefix openssl)
install:
- cd ..
- $TRAVIS_BUILD_DIR/tools/get-boost.sh $TRAVIS_BRANCH $TRAVIS_BUILD_DIR
- cd boost-root
- export PATH=$PATH:"`pwd`"
- export BOOST_ROOT=$(pwd)
- ./bootstrap.sh
- cp libs/beast/tools/user-config.jam ~/user-config.jam
- |-
echo "using $TOOLSET : : $COMPILER : $CXX_FLAGS ;" >> ~/user-config.jam
script:
- cd ../boost-root
- libs/beast/tools/retry.sh libs/beast/tools/build-and-test.sh
after_script:
- cat nohup.out || echo "nohup.out already deleted"
notifications:
email:
false