.travis.yml: enable Mac OS X

This commit is contained in:
Max Kellermann 2017-05-17 16:54:02 +02:00
parent d19e7db09e
commit b90c48b50f

View File

@ -9,6 +9,7 @@ addons:
os: os:
- linux - linux
- osx
env: env:
global: global:
@ -18,14 +19,17 @@ before_install:
# C++14 # C++14
- test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq
- test "$TRAVIS_OS_NAME" != "osx" || brew update
install: install:
# C++14 # C++14
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5 - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5
- test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit
script: script:
- OPTIONS="--enable-test" - OPTIONS="--enable-test"
- test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5 - test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
- test "$TRAVIS_OS_NAME" != "osx" || OPTIONS="$OPTIONS --enable-osx"
- ./autogen.sh - ./autogen.sh
- ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS - ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS
- make - make