2013-09-12 12:46:43 +02:00
|
|
|
# libzmq
|
|
|
|
|
2013-05-21 09:20:39 +02:00
|
|
|
language: c
|
2013-09-12 12:46:43 +02:00
|
|
|
|
2015-08-01 19:17:59 +01:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2013-09-12 12:46:43 +02:00
|
|
|
# Build required projects first
|
|
|
|
before_script:
|
|
|
|
|
|
|
|
# libsodium
|
2013-10-13 14:46:08 +02:00
|
|
|
# Commit 8d0942 broke installation (sodium.h not found) so for now
|
|
|
|
# we're checking out the last good commit.
|
2013-09-12 12:46:43 +02:00
|
|
|
- git clone git://github.com/jedisct1/libsodium.git
|
|
|
|
- cd libsodium
|
2013-10-13 14:46:08 +02:00
|
|
|
- git checkout e2a30a
|
2013-09-12 12:46:43 +02:00
|
|
|
- ./autogen.sh
|
|
|
|
- ./configure && make check
|
|
|
|
- sudo make install
|
2015-08-01 19:17:37 +01:00
|
|
|
- if [ $TRAVIS_OS_NAME != "osx" ] ; then sudo ldconfig ; fi
|
2013-09-12 12:46:43 +02:00
|
|
|
- cd ..
|
|
|
|
|
2015-08-02 19:11:08 +01:00
|
|
|
# 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
|
|
|
|
|
2013-09-12 12:46:43 +02:00
|
|
|
# Build and check libzmq
|
2013-10-13 14:46:08 +02:00
|
|
|
script: ./autogen.sh && ./configure && make V=1 && make check
|