Skip to content

Commit 96eaeee

Browse files
committed
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).
1 parent 2c0a1e0 commit 96eaeee

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.travis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ matrix:
2020
- sudo: true
2121
services: docker
2222
env: PYTHON=3.5 CPP=14 GCC=6 DEBUG=1
23+
- sudo: true
24+
services: docker
25+
env: PYTHON=3.5 CPP=17 GCC=7
2326
- os: osx
2427
osx_image: xcode7.3
2528
env: PYTHON=2.7 CPP=14 CLANG
@@ -46,6 +49,8 @@ matrix:
4649
- make -C docs html SPHINX_OPTIONS=-W
4750
- tools/check-style.sh
4851
- flake8
52+
allow_failures:
53+
- env: PYTHON=3.5 CPP=17 GCC=7
4954
cache:
5055
directories:
5156
- $HOME/.cache/pip
@@ -56,7 +61,9 @@ before_install:
5661
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
5762
if [ -z "$GCC" ]; then export GCC=4.8; fi
5863
export CXX=g++-$GCC CC=gcc-$GCC;
59-
if [ "$GCC" = "6" ]; then export DOCKER=debian:testing CXX=g++ CC=gcc; fi
64+
if [ "$GCC" = "6" ]; then export DOCKER=debian:testing
65+
elif [ "$GCC" = "7" ]; then export DOCKER=debian:experimental APT_GET_EXTRA="-t experimental"
66+
fi
6067
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
6168
export CXX=clang++ CC=clang;
6269
fi
@@ -94,9 +101,10 @@ install:
94101
- |
95102
# Install dependencies
96103
if [ -n "$DOCKER" ]; then
97-
docker exec --tty "$containerid" sh -c "for s in 0 15; do sleep \$s; apt-get -qy --no-install-recommends install \
98-
python$PYTHON-dev python$PY-pytest python$PY-scipy \
99-
libeigen3-dev cmake make g++ && break; done"
104+
docker exec --tty "$containerid" sh -c "for s in 0 15; do sleep \$s; \
105+
apt-get -qy --no-install-recommends $APT_GET_EXTRA install \
106+
python$PY-dev python$PY-pytest python$PY-scipy \
107+
libeigen3-dev cmake make g++-$GCC && break; done"
100108
else
101109
pip install numpy scipy pytest
102110

0 commit comments

Comments
 (0)