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
|
|
|
|
|
2015-08-17 01:37:39 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- BUILD_PREFIX=$PWD/tmp
|
|
|
|
- CFLAGS=-I${BUILD_PREFIX}/include
|
|
|
|
- CPPFLAGS=-I${BUILD_PREFIX}/include
|
|
|
|
- CXXFLAGS=-I${BUILD_PREFIX}/include
|
|
|
|
- LDFLAGS=-L${BUILD_PREFIX}/lib
|
|
|
|
- PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig
|
|
|
|
|
2013-09-12 12:46:43 +02:00
|
|
|
# Build required projects first
|
|
|
|
before_script:
|
|
|
|
|
2015-08-17 01:37:39 +01:00
|
|
|
- mkdir tmp
|
2013-09-12 12:46:43 +02:00
|
|
|
# libsodium
|
|
|
|
- git clone git://github.com/jedisct1/libsodium.git
|
2015-08-17 01:37:39 +01:00
|
|
|
- ( cd libsodium; ./autogen.sh; ./configure --prefix=${BUILD_PREFIX}; make check; make install )
|
2013-09-12 12:46:43 +02:00
|
|
|
|
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
|
|
|
|
|
2015-08-17 01:37:39 +01:00
|
|
|
# Build and check this project
|
|
|
|
script:
|
|
|
|
- ./autogen.sh && ./configure --prefix=${BUILD_PREFIX} && make V=1 && make check
|
|
|
|
- make install
|