summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorChocobo1 <Chocobo1@users.noreply.github.com>2016-01-05 14:19:58 +0800
committerChocobo1 <Chocobo1@users.noreply.github.com>2016-01-11 13:32:59 +0800
commitd416a9b818143a1bf3a3fbc49e521d0fad3fec0a (patch)
tree54c02f8ffa67997304b0ff031929297411901c7f /.travis.yml
parent307c71b66a645dd066aee71e96da0c4ed15cb78d (diff)
TravisCI: enable osx builds
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml27
1 files changed, 23 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 71f8080..45bbd1f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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 @@ addons:
- 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