2014-08-12 12:30:43 +02:00
|
|
|
# Travis CI script
|
2013-09-12 12:46:43 +02:00
|
|
|
|
2013-05-21 09:20:39 +02:00
|
|
|
language: c
|
2013-09-12 12:46:43 +02:00
|
|
|
|
2015-08-01 19:14:28 +01:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2015-08-17 01:26:35 +01:00
|
|
|
sudo: false
|
2017-09-15 15:35:53 +01:00
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_14.04/ ./'
|
|
|
|
key_url: 'http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_14.04/Release.key'
|
|
|
|
packages:
|
|
|
|
- libsodium-dev
|
2017-09-15 15:41:38 +01:00
|
|
|
- asciidoc
|
|
|
|
- xmlto
|
2015-08-17 01:26:35 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2017-09-15 15:37:56 +01:00
|
|
|
- DISTCHECK_CONFIGURE_FLAGS="--with-libsodium"
|
2015-08-17 01:26:35 +01:00
|
|
|
|
2016-09-24 19:58:35 +01:00
|
|
|
before_install:
|
2017-09-15 15:35:53 +01:00
|
|
|
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew install libsodium ; fi
|
2013-09-12 12:46:43 +02:00
|
|
|
|
2015-08-02 19:14:52 +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
|
2017-09-15 15:42:28 +01:00
|
|
|
- if [ $TRAVIS_OS_NAME == "osx" ] ; then sudo sysctl -w kern.maxfiles=64000 ; sudo sysctl -w kern.maxfilesperproc=64000 ; sudo launchctl limit maxfiles 64000 64000 ; ulimit -n 64000 ; fi
|
2015-08-02 19:14:52 +01:00
|
|
|
|
2014-08-12 12:30:43 +02:00
|
|
|
# Build and check this project
|
2014-08-12 12:22:17 +02:00
|
|
|
script:
|
2017-09-15 15:37:56 +01:00
|
|
|
- ./autogen.sh && ./configure --with-libsodium && make distcheck
|
2016-05-04 22:05:40 +02:00
|
|
|
|
|
|
|
# Deploy tags
|
|
|
|
before_deploy:
|
|
|
|
- . ./ci_deploy.sh
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2016-06-04 17:29:25 +02:00
|
|
|
secure: "C+hbVQQL62twHIit4vjExT908acpjQzxPvCgnKKVdEYm58+rXVvQ4HzOlNve7py522m/2iazwnJDX5bPskES5Kof3jqTJ2hZI9rcFXh1KuEjUojiPwix/mUnxFYcxS4PhgmyqG3z5YUsEXnDhwkOwsAVnQIJUFV1XAWMWwDCilI="
|
2016-05-04 22:05:40 +02:00
|
|
|
file_glob: true
|
|
|
|
file: ${ZEROMQ41_DEPLOYMENT}
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: zeromq/zeromq4-1
|
|
|
|
branch: master
|
|
|
|
tags: true
|
|
|
|
condition: "$TRAVIS_OS_NAME =~ (linux)"
|