Skip to content

Commit 0bbaeea

Browse files
pwnalldominichamon
authored andcommitted
Add GCC on OSX to list of Travis CI configurations. (#492)
1 parent 95a1435 commit 0bbaeea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ matrix:
129129
compiler: clang
130130
env:
131131
- COMPILER=clang++ BUILD_TYPE=Release
132+
- os: osx
133+
osx_image: xcode8.3
134+
compiler: gcc
135+
env:
136+
- COMPILER=g++-7 C_COMPILER=gcc-7 BUILD_TYPE=Debug
132137

133138
before_script:
134139
- if [ -z "$BUILD_32_BITS" ]; then
@@ -145,6 +150,11 @@ install:
145150
pip install --user --upgrade pip;
146151
pip install --user cpp-coveralls;
147152
fi
153+
- if [ "${C_COMPILER}" == "gcc-7" -a "${TRAVIS_OS_NAME}" == "osx" ]; then
154+
rm -f /usr/local/include/c++;
155+
brew update;
156+
brew install gcc@7;
157+
fi
148158

149159
script:
150160
- cmake -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="${EXTRA_FLAGS}" -DBENCHMARK_BUILD_32_BITS=${BUILD_32_BITS} ..

0 commit comments

Comments
 (0)