]> jfr.im git - solanum.git/commitdiff
Don't enable warnings on osx
authorSimon Arlott <sa.me.uk>
Sun, 15 Sep 2019 11:56:55 +0000 (12:56 +0100)
committerSimon Arlott <sa.me.uk>
Sun, 15 Sep 2019 11:56:55 +0000 (12:56 +0100)
.travis.yml

index 8256fc0158ad0c1642fda448f3751ef8d709021b..625ea507c9faaf7eb687de63d67bc532ba1a4146 100644 (file)
@@ -96,7 +96,8 @@ cache:
 
 script:
   - bash autogen.sh
-  - CC=$COMPILER CFLAGS="-Werror -Wno-unused-value -Wno-unused-parameter" ./configure --with-shared-sqlite --with-assert=hard --enable-warnings
+  - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then CC=$COMPILER CFLAGS=\"-Werror -Wno-unused-value -Wno-unused-parameter\" ./configure --with-shared-sqlite --with-assert=hard --enable-warnings; fi"
+  - "if [ ${TRAVIS_OS_NAME} = 'osx' ]; then CC=$COMPILER ./configure --with-shared-sqlite; fi"
   - make -j4
   - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make check; fi"
   - make install