Travis-ci: build dmg on OS X

This commit is contained in:
Frank Morgner 2015-04-01 00:13:19 +02:00
parent a251b9335c
commit 311958e13f
1 changed files with 16 additions and 3 deletions

View File

@ -9,8 +9,17 @@ env:
matrix: matrix:
include: include:
- compiler: clang - compiler: clang
os: osx
- compiler: gcc - compiler: gcc
os: osx
- compiler: clang
os: linux
env: ENABLE_DOC=--enable-doc
- compiler: gcc - compiler: gcc
os: linux
env: ENABLE_DOC=--enable-doc
- compiler: gcc
os: linux
env: HOST=i686-w64-mingw32 env: HOST=i686-w64-mingw32
before_install: before_install:
@ -30,7 +39,7 @@ install:
before_script: before_script:
- ./bootstrap - ./bootstrap
- if [ -z "$HOST" ]; then - if [ -z "$HOST" ]; then
./configure --enable-pedantic --disable-strict --enable-doc --enable-dnie-ui; ./configure --enable-pedantic --disable-strict $ENABLE_DOC --enable-dnie-ui;
else else
unset CC; unset CC;
unset CXX; unset CXX;
@ -48,9 +57,13 @@ addons:
script: script:
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then - if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
make; if [ $TRAVIS_OS_NAME == osx ]; then
./MacOSX/build;
else
make;
fi;
fi fi
- if [ -z "$HOST" -a "${COVERITY_SCAN_BRANCH}" != 1 ]; then - if [ -z "$HOST" -a "${COVERITY_SCAN_BRANCH}" != 1 -a "$TRAVIS_OS_NAME" != "osx" ]; then
make check; make check;
make dist; make dist;
fi fi