Add gcc-7 to travis.yml

This commit is contained in:
Stuart Reilly
2019-07-17 11:44:38 +01:00
parent 2ce4adf09d
commit 95ba3fa142
+16
View File
@@ -8,12 +8,28 @@ compiler:
- clang - clang
- gcc - gcc
matrix: matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
exclude: exclude:
# osx use always clang for build... # osx use always clang for build...
- os: osx - os: osx
compiler: gcc compiler: gcc
before_install:
- eval "${MATRIX_EVAL}"
install: install:
#macos #macos
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi