Add gcc-7 build from debian experimental

Add a build using g++-7 snapshot from debian experimental.  This build
is set to allow failures without triggering an overall build failure
(since this is an experimental compiler with experimental support for a
future C++ standard).
This commit is contained in:
Jason Rhinelander 2016-12-13 21:00:51 -05:00 committed by Wenzel Jakob
parent 6e036e78a7
commit a3d41d103c

View File

@ -20,6 +20,9 @@ matrix:
- sudo: true - sudo: true
services: docker services: docker
env: PYTHON=3.5 CPP=14 GCC=6 DEBUG=1 env: PYTHON=3.5 CPP=14 GCC=6 DEBUG=1
- sudo: true
services: docker
env: PYTHON=3.5 CPP=17 GCC=7
- os: osx - os: osx
osx_image: xcode7.3 osx_image: xcode7.3
env: PYTHON=2.7 CPP=14 CLANG env: PYTHON=2.7 CPP=14 CLANG
@ -46,6 +49,8 @@ matrix:
- make -C docs html SPHINX_OPTIONS=-W - make -C docs html SPHINX_OPTIONS=-W
- tools/check-style.sh - tools/check-style.sh
- flake8 - flake8
allow_failures:
- env: PYTHON=3.5 CPP=17 GCC=7
cache: cache:
directories: directories:
- $HOME/.cache/pip - $HOME/.cache/pip
@ -56,7 +61,9 @@ before_install:
if [ "$TRAVIS_OS_NAME" = "linux" ]; then if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ -z "$GCC" ]; then export GCC=4.8; fi if [ -z "$GCC" ]; then export GCC=4.8; fi
export CXX=g++-$GCC CC=gcc-$GCC; export CXX=g++-$GCC CC=gcc-$GCC;
if [ "$GCC" = "6" ]; then export DOCKER=debian:testing CXX=g++ CC=gcc; fi if [ "$GCC" = "6" ]; then export DOCKER=debian:testing
elif [ "$GCC" = "7" ]; then export DOCKER=debian:experimental APT_GET_EXTRA="-t experimental"
fi
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
export CXX=clang++ CC=clang; export CXX=clang++ CC=clang;
fi fi
@ -94,9 +101,10 @@ install:
- | - |
# Install dependencies # Install dependencies
if [ -n "$DOCKER" ]; then if [ -n "$DOCKER" ]; then
docker exec --tty "$containerid" sh -c "for s in 0 15; do sleep \$s; apt-get -qy --no-install-recommends install \ docker exec --tty "$containerid" sh -c "for s in 0 15; do sleep \$s; \
python$PYTHON-dev python$PY-pytest python$PY-scipy \ apt-get -qy --no-install-recommends $APT_GET_EXTRA install \
libeigen3-dev cmake make g++ && break; done" python$PY-dev python$PY-pytest python$PY-scipy \
libeigen3-dev cmake make g++-$GCC && break; done"
else else
pip install numpy scipy pytest pip install numpy scipy pytest