Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
language:
- cpp

os:
- linux
- osx

compiler:
- clang
- gcc

sudo: required
dist: trusty
matrix:
allow_failures:
- os: osx
include:
- os: linux
dist: trusty
sudo: required
- os: osx

env:
global:
Expand All @@ -21,18 +31,27 @@ env:
- BUILD_EXAMPLES="ON" BUILD_TESTS="ON" CMAKE_BUILD_TYPE="Release" HTTPP_PARSER_BACKEND=Stream USE_BOOST_PROMISE=OFF
- BUILD_EXAMPLES="ON" BUILD_TESTS="ON" CMAKE_BUILD_TYPE="Debug" HTTPP_PARSER_BACKEND=Stream USE_BOOST_PROMISE=OFF

addons:
apt:
packages:
- clang-3.6
- g++-4.8
- libboost-all-dev
- libssl-dev
- libtbb-dev
- cmake
- libcurl4-openssl-dev
- libhwloc-dev

before_install:
- git submodule update --init --recursive

install:
- sudo apt-get update
- sudo apt-get install -y clang-3.6 g++-4.8 libboost-all-dev libssl-dev libtbb-dev cmake
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/science && brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tbb hwloc; fi

before_script:
# update compilers
- if [ "${CXX}" == "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "${CXX}" == "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
- if [ "$TRAVIS_OS_NAME" != "osx" && "${CXX}" == "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$TRAVIS_OS_NAME" != "osx" && "${CXX}" == "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi

script:
- rm -rf build
Expand Down