forked from boostorg/beast
* Update boost package URL * Retry Travis build script * Respect Travis's $NUM_PROCESSORS limit * Disable sudo * Disable autobahn tests * Show output from the wsecho server during autobahn
89 lines
2.0 KiB
YAML
89 lines
2.0 KiB
YAML
sudo: false
|
|
language: cpp
|
|
|
|
env:
|
|
global:
|
|
- LLVM_VERSION=3.8.0
|
|
# Maintenance note: to move to a new version
|
|
# of boost, update both BOOST_ROOT and BOOST_URL.
|
|
# Note that for simplicity, BOOST_ROOT's final
|
|
# namepart must match the folder name internal
|
|
# to boost's .tar.gz.
|
|
- LCOV_ROOT=$HOME/lcov
|
|
- VALGRIND_ROOT=$HOME/valgrind-install
|
|
- BOOST_ROOT=$HOME/boost_1_61_0
|
|
- BOOST_URL='http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz'
|
|
packages: &gcc5_pkgs
|
|
- gcc-5
|
|
- g++-5
|
|
- python-software-properties
|
|
- libssl-dev
|
|
- libffi-dev
|
|
- libstdc++6
|
|
- binutils-gold
|
|
# Provides a backtrace if the unittests crash
|
|
- gdb
|
|
# Needed for installing valgrind
|
|
- subversion
|
|
- automake
|
|
- autotools-dev
|
|
- libc6-dbg
|
|
|
|
matrix:
|
|
include:
|
|
# GCC/Coverage/Autobahn (if master or develop branch)
|
|
- compiler: gcc
|
|
env:
|
|
- GCC_VER=5
|
|
- VARIANT=coverage
|
|
- ADDRESS_MODEL=64
|
|
- BUILD_SYSTEM=cmake
|
|
- PATH=$PWD/cmake/bin:$PATH
|
|
addons: &ao_gcc5
|
|
apt:
|
|
sources: ['ubuntu-toolchain-r-test']
|
|
packages: *gcc5_pkgs
|
|
|
|
# Clang/UndefinedBehaviourSanitizer
|
|
- compiler: clang
|
|
env:
|
|
- GCC_VER=5
|
|
- VARIANT=usan
|
|
- CLANG_VER=3.8
|
|
- ADDRESS_MODEL=64
|
|
- UBSAN_OPTIONS='print_stacktrace=1'
|
|
- BUILD_SYSTEM=cmake
|
|
- PATH=$PWD/cmake/bin:$PATH
|
|
- PATH=$PWD/llvm-$LLVM_VERSION/bin:$PATH
|
|
addons: *ao_gcc5
|
|
|
|
# Clang/AddressSanitizer
|
|
- compiler: clang
|
|
env:
|
|
- GCC_VER=5
|
|
- VARIANT=asan
|
|
- CLANG_VER=3.8
|
|
- ADDRESS_MODEL=64
|
|
- PATH=$PWD/llvm-$LLVM_VERSION/bin:$PATH
|
|
addons: *ao_gcc5
|
|
|
|
cache:
|
|
directories:
|
|
- $BOOST_ROOT
|
|
- $VALGRIND_ROOT
|
|
- llvm-$LLVM_VERSION
|
|
- cmake
|
|
|
|
before_install:
|
|
- scripts/install-dependencies.sh
|
|
|
|
script:
|
|
- travis_retry scripts/build-and-test.sh
|
|
|
|
after_script:
|
|
- cat nohup.out || echo "nohup.out already deleted"
|
|
|
|
notifications:
|
|
email:
|
|
false
|