2 # Copyright (c) 2016 Stefan Seefeld
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or copy at
7 # http://www.boost.org/LICENSE_1_0.txt)
16 - secure: BRNUkxN3p8f+uYKWC3Hr0VPqZA0PxbWr1DJlcI4hbiZtzKhMCWjDmd9UW9CzzexqeOxpd+9s0G87qvOur+wMSVxugDxtTesZrh1czXHeSVxgQrYD783XJtQJ9aYypbChkiboRD6Xpmbq7itwMuHBJMFtCuDxMynpU1jWwkyTf2Y=
21 env: CXX=g++ PYTHON=python CXXFLAGS=-std=c++98
23 env: CXX=g++ PYTHON=python CXXFLAGS=-std=c++11
25 env: CXX=g++ PYTHON=python3 CXXFLAGS=-std=c++98
27 env: CXX=g++ PYTHON=python3 CXXFLAGS=-std=c++11
29 # clang generates an 'illegal instruction' error in the NumPy check.
30 # Perhaps we need to upgrade clang to a newer version ?
31 env: CXX=clang++ PYTHON=python3 CXXFLAGS=-std=c++98 OPTIONS=--no-numpy
33 env: CXX=clang++ PYTHON=python3 CXXFLAGS=-std=c++11 OPTIONS=--no-numpy
34 - env: PYTHON=python DOC=1
40 - ubuntu-toolchain-r-test
61 # The Trusty image has several Python versions pre-installed compiled with
62 # conflicting UCS2 and UCS4 unicode. Modify the PATH to skip the TravisCI python.
63 # See https://github.com/travis-ci/travis-ci/issues/4948 for details.
64 - export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
67 # Install our own version of Boost (the subset we need) as the system version is
68 # too old (for C++11 support).
72 if [ ! -d $HOME/Boost ]; then
73 echo "rebuilding Boost prerequisites"
74 wget https://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz/download
80 dist/bin/bcp python tools/boostbook tools/quickbook $HOME/Boost &> /dev/null
88 - scons config --python=$PYTHON --boost-include=$HOME/Boost $OPTIONS
89 - if [ "$DOC" ]; then scons doc; else scons && scons test; fi
92 # Upload docs only when building upstream.
95 "$TRAVIS_REPO_SLUG" = "boostorg/python" -a \
96 "$TRAVIS_PULL_REQUEST" = "false" ]; then