Travis: Also try GCC on macOS
Usually the macOS command `gcc` is just a frontend for `clang`. To
compile Elektra with an actual version of GCC on macOS we install the
compiler suite via Homebrew, and change the compiler variables `CC` and
`CXX`.
@@ -39,6 +39,12 @@ before_install:
rvm install 2.3.1;
rvm use 2.3.1;
gem install test-unit --no-document;
+ if [[ "$CC" == "gcc" ]]; then
+ brew install gcc;
+ brew link --overwrite gcc;
+ export CC=gcc-7;
+ export CXX=g++-7;
+ fi;
brew install ninja;
brew install checkbashisms;
brew install swig;
