Merge pull request #61 from bluca/ci-container-build

Enable container-based build
This commit is contained in:
Joe Eli McIlvain 2015-08-16 18:28:35 -07:00
commit 53db7468b6

View File

@ -6,13 +6,23 @@ os:
- linux - linux
- osx - osx
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
# Build required projects first # Build required projects first
before_script: before_script:
- mkdir tmp
# libsodium # libsodium
- git clone git://github.com/jedisct1/libsodium.git - git clone git://github.com/jedisct1/libsodium.git
- ( cd libsodium; ./autogen.sh; ./configure; make check; sudo make install; - ( cd libsodium; ./autogen.sh; ./configure --prefix=${BUILD_PREFIX}; make check; make install )
if [ $TRAVIS_OS_NAME != "osx" ] ; then sudo ldconfig ; fi )
# ZMQ stress tests need more open socket (files) than the usual default # 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 # On OSX, it seems the way to set the max files limit is constantly changing, so
@ -21,5 +31,5 @@ before_script:
# Build and check this project # Build and check this project
script: script:
- ./autogen.sh && ./configure && make && make check - ./autogen.sh && ./configure --prefix=${BUILD_PREFIX} && make && make check
- sudo make install - make install