forked from boostorg/functional
std::unary_function and std::binary_function are removed in C++17, and Visual C++ is the first compiler to do this (when the appropriate macro is defined). I'm not sure what the long term solution should be, but hopefully this will work for now.
51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
# Copyright (C) 2016 Daniel James.
|
|
# 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)
|
|
|
|
# Use Trusty to get a reasonably recent version of Boost.
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
language: c++
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libboost-dev
|
|
- libboost-tools-dev
|
|
|
|
matrix:
|
|
include:
|
|
- compiler: gcc
|
|
env: BJAM_TOOLSET=gcc-std03
|
|
- compiler: gcc
|
|
env: BJAM_TOOLSET=gcc-std11
|
|
- compiler: clang
|
|
env: BJAM_TOOLSET=clang-std03
|
|
- compiler: clang
|
|
env: BJAM_TOOLSET=clang-std11
|
|
- compiler: clang
|
|
env: BJAM_TOOLSET=clang-pretend_no_auto_ptr_etc
|
|
|
|
before_script:
|
|
- |
|
|
echo "using gcc : std03 : g++-4.8 -Werror --std=c++03 ;" > ~/user-config.jam
|
|
echo "using gcc : std11 : g++-4.8 -Werror --std=c++11 ;" >> ~/user-config.jam
|
|
echo "using clang : std03 : clang++ -Werror --std=c++03 ;" >> ~/user-config.jam
|
|
echo "using clang : std11 : clang++ -Werror --std=c++11 ;" >> ~/user-config.jam
|
|
echo "using clang : pretend_no_auto_ptr_etc : clang++ -Werror --std=c++11 -D_HAS_AUTO_PTR_ETC=0 ;" >> ~/user-config.jam
|
|
- cat ~/user-config.jam
|
|
- touch Jamroot.jam
|
|
|
|
script:
|
|
- cd ${TRAVIS_BUILD_DIR}/test
|
|
- bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include
|
|
- cd ${TRAVIS_BUILD_DIR}/hash/test
|
|
- bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include
|
|
- cd ${TRAVIS_BUILD_DIR}/forward/test
|
|
- bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include
|
|
- cd ${TRAVIS_BUILD_DIR}/factory/test
|
|
- bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include
|
|
- cd ${TRAVIS_BUILD_DIR}/overloaded_function/test
|
|
- bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include
|