Merge pull request #134 from bluca/travis-ci-osx

Travis ci osx
This commit is contained in:
Richard Newton 2015-08-02 19:22:28 +01:00
commit 65911b3729

View File

@ -2,6 +2,10 @@
language: c
os:
- linux
- osx
# Build required projects first
before_script:
@ -14,8 +18,13 @@ before_script:
- ./autogen.sh
- ./configure && make check
- sudo make install
- sudo ldconfig
- if [ $TRAVIS_OS_NAME != "osx" ] ; then sudo ldconfig ; fi
- cd ..
# ZMQ stress tests need more open socket (files) than the usual default
# On OSX, it seems the way to set the max files limit is constantly changing, so
# try to use all known knobs to ensure compatibility across various versions
- if [ $TRAVIS_OS_NAME == "osx" ] ; then sudo sysctl -w kern.maxfiles=64000 ; sudo sysctl -w kern.maxfilesperproc=64000 ; sudo launchctl limit maxfiles 64000 64000 ; fi ; ulimit -n 64000
# Build and check libzmq
script: ./autogen.sh && ./configure && make V=1 && make check