diff --git a/.travis.yml b/.travis.yml index 6dd5b57..894d927 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,6 @@ before_script: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then export LDFLAGS="-L/usr/local/opt/bison/lib" && export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"; fi script: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; - then travis_wait 40 mkdir -p build && cd build && cmake -DTRAVIS=ON .. && make -j4 && ctest --debug; - else travis_wait 40 mkdir -p build && cd build && cmake -DTRAVIS=ON -DBUILD_PYTHON_TESTS=ON -DBUILD_JAR=ON -DPYTHON_ITERATOR_SUPPORT=ON .. && make -j4 && ctest --debug; + then travis_wait 40 mkdir -p build && cd build && cmake -DTRAVIS=ON -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 .. && make -j4 && ctest --debug; + else travis_wait 40 mkdir -p build && cd build && cmake -DTRAVIS=ON -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 -DBUILD_PYTHON_TESTS=ON -DBUILD_JAR=ON -DPYTHON_ITERATOR_SUPPORT=ON .. && make -j4 && ctest --debug; fi