travis-ci: OS X : compile with real gcc 4.9 instead of clang gcc frontend

This commit is contained in:
Thomas Bernard 2017-02-15 12:15:36 +01:00
parent 7aaa600769
commit 8208d873bf
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ compiler:
- gcc - gcc
- clang - clang
before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi'
script: script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
- 'MAKEFILE=Makefile && if [ -f Makefile.linux -a "$TRAVIS_OS_NAME" = "linux" ]; then MAKEFILE=Makefile.linux; elif [ -f Makefile.macosx -a "$TRAVIS_OS_NAME" = "osx" ]; then MAKEFILE=Makefile.macosx; fi' - 'MAKEFILE=Makefile && if [ -f Makefile.linux -a "$TRAVIS_OS_NAME" = "linux" ]; then MAKEFILE=Makefile.linux; elif [ -f Makefile.macosx -a "$TRAVIS_OS_NAME" = "osx" ]; then MAKEFILE=Makefile.macosx; fi'