# HG changeset patch # User Chocobo1 # Date 1451974798 -28800 # Node ID 2e3d083483def1c3aa27ac2cf20d741fa2beb60a # Parent 53111b3413dca0cac3ecb8b62be18a4eed10ff07 TravisCI: enable osx builds diff -r 53111b3413dc -r 2e3d083483de .travis.yml --- a/.travis.yml Tue Jan 05 14:13:34 2016 +0800 +++ b/.travis.yml Tue Jan 05 14:19:58 2016 +0800 @@ -1,10 +1,25 @@ language: c +os: + - linux + - osx + env: - - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror - - BUNDLEDLIBTOM=--enable-bundled-libtom - - MULTI=1 - - NOWRITEV=1 + matrix: + - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror + - BUNDLEDLIBTOM=--enable-bundled-libtom + - MULTI=1 + - NOWRITEV=1 + +# TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82 +matrix: + exclude: + - os: osx + env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror + - os: osx + env: MULTI=1 + - os: osx + env: NOWRITEV=1 compiler: - gcc @@ -20,6 +35,10 @@ - libtomcrypt-dev - libtommath-dev + +install: + - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi + script: - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true