forked from boostorg/beast
198 lines
5.7 KiB
YAML
198 lines
5.7 KiB
YAML
#
|
|
# 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=coverage
|
|
- TOOLSET=gcc
|
|
- COMPILER=g++-6
|
|
- CXXSTD=c++11
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-6
|
|
- lcov
|
|
- libssl-dev
|
|
- *base_packages
|
|
sources:
|
|
- *base_sources
|
|
|
|
# GCC 5.0, Valgrind
|
|
- os: linux
|
|
compiler: g++-5
|
|
env:
|
|
- VARIANT=valgrind
|
|
- TOOLSET=gcc
|
|
- COMPILER=g++-5
|
|
- CXXSTD=c++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=ubasan
|
|
- TOOLSET=clang
|
|
- COMPILER=clang++-3.8
|
|
- CXXSTD=c++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
|
|
|
|
# GCC 4.8, Release
|
|
- os: linux
|
|
compiler: g++-4.8
|
|
env:
|
|
- VARIANT=release
|
|
- TOOLSET=gcc
|
|
- COMPILER=g++-4.8
|
|
- CXXSTD=c++11
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-4.8
|
|
- *base_packages
|
|
sources:
|
|
- *base_sources
|
|
|
|
# OSX Clang, C++14, Debug
|
|
- os: osx
|
|
compiler: clang++
|
|
env:
|
|
- VARIANT=debug
|
|
- TOOLSET=clang
|
|
- COMPILER=clang++
|
|
- CXXSTD=c++14
|
|
|
|
# OSX
|
|
|
|
before_install: &base_before_install
|
|
- pip install --user https://github.com/codecov/codecov-python/archive/master.zip
|
|
|
|
install:
|
|
- export BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
|
|
- cd ..
|
|
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
|
|
- cd boost-root
|
|
- export BOOST_ROOT="`pwd`"
|
|
- export PATH="`pwd`":$PATH
|
|
- git submodule update --init tools/build
|
|
- git submodule update --init tools/boostdep
|
|
- git submodule update --init libs/asio
|
|
- git submodule update --init libs/assert
|
|
- git submodule update --init libs/config
|
|
- git submodule update --init libs/core
|
|
- git submodule update --init libs/endian
|
|
- git submodule update --init libs/filesystem
|
|
- git submodule update --init libs/intrusive
|
|
- git submodule update --init libs/locale
|
|
- git submodule update --init libs/optional
|
|
- git submodule update --init libs/smart_ptr
|
|
- git submodule update --init libs/static_assert
|
|
- git submodule update --init libs/system
|
|
- git submodule update --init libs/throw_exception
|
|
- git submodule update --init libs/type_traits
|
|
- git submodule update --init libs/utility
|
|
- git submodule update --init libs/winapi
|
|
|
|
- git submodule update --init libs/algorithm
|
|
- git submodule update --init libs/array
|
|
- git submodule update --init libs/atomic
|
|
- git submodule update --init libs/bind
|
|
- git submodule update --init libs/chrono
|
|
- git submodule update --init libs/concept_check
|
|
- git submodule update --init libs/container
|
|
- git submodule update --init libs/context
|
|
- git submodule update --init libs/conversion
|
|
- git submodule update --init libs/coroutine
|
|
- git submodule update --init libs/date_time
|
|
- git submodule update --init libs/detail
|
|
- git submodule update --init libs/exception
|
|
- git submodule update --init libs/function
|
|
- git submodule update --init libs/function_types
|
|
- git submodule update --init libs/functional
|
|
- git submodule update --init libs/fusion
|
|
- git submodule update --init libs/integer
|
|
- git submodule update --init libs/io
|
|
- git submodule update --init libs/iterator
|
|
- git submodule update --init libs/lambda
|
|
- git submodule update --init libs/lexical_cast
|
|
- git submodule update --init libs/logic
|
|
- git submodule update --init libs/math
|
|
- git submodule update --init libs/move
|
|
- git submodule update --init libs/mpl
|
|
- git submodule update --init libs/numeric/conversion
|
|
- git submodule update --init libs/pool
|
|
- git submodule update --init libs/predef
|
|
- git submodule update --init libs/preprocessor
|
|
- git submodule update --init libs/random
|
|
- git submodule update --init libs/range
|
|
- git submodule update --init libs/ratio
|
|
- git submodule update --init libs/rational
|
|
- git submodule update --init libs/serialization
|
|
- git submodule update --init libs/thread
|
|
- git submodule update --init libs/tokenizer
|
|
- git submodule update --init libs/tuple
|
|
- git submodule update --init libs/type_index
|
|
- git submodule update --init libs/typeof
|
|
- git submodule update --init libs/unordered
|
|
- rm -rf libs/beast
|
|
- mkdir libs/beast
|
|
- cp -r $TRAVIS_BUILD_DIR/* libs/beast
|
|
- ./bootstrap.sh
|
|
|
|
script:
|
|
- |-
|
|
echo "using $TOOLSET : : $COMPILER : <cxxflags>-std=$CXXSTD ;" > ~/user-config.jam
|
|
- cd ../boost-root
|
|
- travis_retry libs/beast/tools/build-and-test.sh
|
|
|
|
after_script:
|
|
- cat nohup.out || echo "nohup.out already deleted"
|
|
|
|
notifications:
|
|
email:
|
|
false
|