0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00

Merge pull request #2275 from bluca/travis_pkg

This commit is contained in:
Constantin Rack 2016-12-27 12:51:19 +01:00 committed by GitHub
commit b2a2bb8609
5 changed files with 78 additions and 25 deletions

View File

@ -12,36 +12,45 @@ env:
- BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled - BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled
- BUILD_TYPE=android CURVE=tweetnacl - BUILD_TYPE=android CURVE=tweetnacl
- BUILD_TYPE=cmake CURVE=tweetnacl - BUILD_TYPE=cmake CURVE=tweetnacl
- BUILD_TYPE=default CURVE=libsodium
- BUILD_TYPE=default - BUILD_TYPE=default
- BUILD_TYPE=coverage CURVE=tweetnacl DRAFT=enabled
- BUILD_TYPE=valgrind CURVE=tweetnacl DRAFT=enabled
matrix: matrix:
exclude:
- env: BUILD_TYPE=coverage CURVE=tweetnacl DRAFT=enabled
os: osx
- env: BUILD_TYPE=valgrind CURVE=tweetnacl DRAFT=enabled
os: osx
include: include:
- env: BUILD_TYPE=default CURVE=tweetnacl IPv6=ON - env: BUILD_TYPE=default CURVE=tweetnacl IPv6=ON
os: linux os: linux
dist: precise dist: precise
sudo: false sudo: false
- env: BUILD_TYPE=coverage CURVE=tweetnacl DRAFT=enabled
os: linux
addons:
apt:
packages:
- lcov
- env: BUILD_TYPE=valgrind CURVE=tweetnacl DRAFT=enabled
os: linux
addons:
apt:
packages:
- valgrind
- env: BUILD_TYPE=default CURVE=libsodium
os: linux
addons:
apt:
sources:
- sourceline: 'deb http://download.opensuse.org/repositories/home:/zeromq:/git-stable/xUbuntu_14.04/ ./'
key_url: 'http://download.opensuse.org/repositories/home:/zeromq:/git-stable/xUbuntu_14.04/Release.key'
packages:
- libsodium-dev
- asciidoc
- xmlto
- env: BUILD_TYPE=default CURVE=libsodium
os: osx
sudo: required sudo: required
addons:
apt:
packages:
- cmake
- lcov
- valgrind
before_install: before_install:
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils ; fi - if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils ; fi
# workaround for Travis OSX CI bug, hasn't been fixed in a month so time for a hack - if [ $TRAVIS_OS_NAME == "osx" -a $CURVE == "libsodium" ] ; then brew install libsodium ; fi
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew uninstall libtool && brew install libtool ; fi
before_script: before_script:
# ZMQ stress tests need more open socket (files) than the usual default # ZMQ stress tests need more open socket (files) than the usual default

View File

@ -23,8 +23,19 @@ if [ -z $CURVE ]; then
elif [ $CURVE == "libsodium" ]; then elif [ $CURVE == "libsodium" ]; then
CMAKE_OPTS+=("-DWITH_LIBSODIUM=ON") CMAKE_OPTS+=("-DWITH_LIBSODIUM=ON")
if command -v dpkg-query >/dev/null 2>&1; then
dpkg-query --list libsodium-dev >/dev/null 2>&1
HAVE_SODIUM=$?
elif command -v brew >/dev/null 2>&1; then
brew ls --versions libsodium >/dev/null 2>&1
HAVE_SODIUM=$?
else
HAVE_SODIUM=1
fi
if [ $HAVE_SODIUM -ne 0 ]; then
git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make install) ( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
fi
fi fi
# Build, check, and install from local source # Build, check, and install from local source

View File

@ -19,8 +19,19 @@ if [ -z $CURVE ]; then
elif [ $CURVE == "libsodium" ]; then elif [ $CURVE == "libsodium" ]; then
CMAKE_OPTS+=("-DWITH_LIBSODIUM=ON") CMAKE_OPTS+=("-DWITH_LIBSODIUM=ON")
if command -v dpkg-query >/dev/null 2>&1; then
dpkg-query --list libsodium-dev >/dev/null 2>&1
HAVE_SODIUM=$?
elif command -v brew >/dev/null 2>&1; then
brew ls --versions libsodium >/dev/null 2>&1
HAVE_SODIUM=$?
else
HAVE_SODIUM=1
fi
if [ $HAVE_SODIUM -ne 0 ]; then
git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make install) ( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
fi
fi fi
pip install --user cpp-coveralls pip install --user cpp-coveralls

View File

@ -19,8 +19,19 @@ if [ -z $CURVE ]; then
elif [ $CURVE == "libsodium" ]; then elif [ $CURVE == "libsodium" ]; then
CONFIG_OPTS+=("--with-libsodium=yes") CONFIG_OPTS+=("--with-libsodium=yes")
if command -v dpkg-query >/dev/null 2>&1; then
dpkg-query --list libsodium-dev >/dev/null 2>&1
HAVE_SODIUM=$?
elif command -v brew >/dev/null 2>&1; then
brew ls --versions libsodium >/dev/null 2>&1
HAVE_SODIUM=$?
else
HAVE_SODIUM=1
fi
if [ $HAVE_SODIUM -ne 0 ]; then
git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make install) ( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
fi
fi fi
# Build, check, and install from local source # Build, check, and install from local source

View File

@ -20,9 +20,20 @@ if [ $BUILD_TYPE == "default" ]; then
elif [ $CURVE == "libsodium" ]; then elif [ $CURVE == "libsodium" ]; then
CONFIG_OPTS+=("--with-libsodium=yes") CONFIG_OPTS+=("--with-libsodium=yes")
if command -v dpkg-query >/dev/null 2>&1; then
dpkg-query --list libsodium-dev >/dev/null 2>&1
HAVE_SODIUM=$?
elif command -v brew >/dev/null 2>&1; then
brew ls --versions libsodium >/dev/null 2>&1
HAVE_SODIUM=$?
else
HAVE_SODIUM=1
fi
if [ $HAVE_SODIUM -ne 0 ]; then
git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install) ( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
fi fi
fi
if [ -z $DRAFT ] || [ $DRAFT == "disabled" ]; then if [ -z $DRAFT ] || [ $DRAFT == "disabled" ]; then
CONFIG_OPTS+=("--enable-drafts=no") CONFIG_OPTS+=("--enable-drafts=no")