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:56:11 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2016-03-19 17:30:59 +01:00
|
|
|
dist: trusty
|
|
|
|
|
2014-11-03 02:33:23 +01:00
|
|
|
env:
|
2016-05-02 22:57:42 +02:00
|
|
|
- BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled
|
2016-02-11 23:06:33 +01:00
|
|
|
- BUILD_TYPE=android CURVE=tweetnacl
|
|
|
|
- BUILD_TYPE=cmake CURVE=tweetnacl
|
2016-02-13 00:22:51 +01:00
|
|
|
- BUILD_TYPE=default CURVE=libsodium
|
2014-11-04 21:57:39 +01:00
|
|
|
- BUILD_TYPE=default
|
2016-05-02 22:57:42 +02:00
|
|
|
- BUILD_TYPE=coverage CURVE=tweetnacl DRAFT=enabled
|
|
|
|
- BUILD_TYPE=valgrind CURVE=tweetnacl DRAFT=enabled
|
2016-03-13 20:52:31 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
2016-05-04 22:05:40 +02:00
|
|
|
- env: BUILD_TYPE=coverage CURVE=tweetnacl DRAFT=enabled
|
|
|
|
os: osx
|
|
|
|
- env: BUILD_TYPE=valgrind CURVE=tweetnacl DRAFT=enabled
|
|
|
|
os: osx
|
2016-04-18 17:22:49 +02:00
|
|
|
include:
|
2016-05-04 22:05:40 +02:00
|
|
|
- env: BUILD_TYPE=default CURVE=tweetnacl IPv6=ON
|
|
|
|
os: linux
|
|
|
|
dist: precise
|
|
|
|
sudo: false
|
2013-09-12 12:46:43 +02:00
|
|
|
|
2016-03-19 17:30:59 +01:00
|
|
|
sudo: required
|
2015-08-16 19:55:43 +02:00
|
|
|
|
2016-02-08 13:46:49 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- cmake
|
2016-03-13 20:52:31 +01:00
|
|
|
- lcov
|
2016-02-05 22:05:11 +01:00
|
|
|
- valgrind
|
2016-02-08 13:46:49 +01:00
|
|
|
|
2015-08-17 18:06:56 +02:00
|
|
|
before_install:
|
|
|
|
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils ; fi
|
2016-07-24 15:24:24 +02:00
|
|
|
# workaround for Travis OSX CI bug, hasn't been fixed in a month so time for a hack
|
|
|
|
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew uninstall libtool && brew install libtool ; fi
|
2015-08-17 18:06:56 +02:00
|
|
|
|
2015-08-02 20:20:34 +02:00
|
|
|
before_script:
|
|
|
|
# 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
|
2016-03-19 17:30:59 +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 20:20:34 +02:00
|
|
|
|
2014-11-04 21:57:39 +01:00
|
|
|
# Build and check this project according to the BUILD_TYPE
|
2014-11-03 02:33:23 +01:00
|
|
|
script: ./ci_build.sh
|
2016-05-04 22:05:40 +02:00
|
|
|
|
|
|
|
# Deploy tags
|
|
|
|
before_deploy:
|
|
|
|
- . ./ci_deploy.sh
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: vGB5E+A8wxm2J1GJZzmIgT9PrjEzvd9gE8iui8FyxSbxAsW9vFZFGZC/21sTtpVcmRarwQCHH1UEbtg+nJwN2iD9YzMRnSVks8xqP+b709YW+VXaMuhZgTzWa74IorQku7NuvLibvQk72/OSgdwPGaNJ6f5AX9pnWVWbEoW1svE=
|
|
|
|
file_glob: true
|
|
|
|
file: ${LIBZMQ_DEPLOYMENT}
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: zeromq/libzmq
|
|
|
|
branch: master
|
|
|
|
tags: true
|
|
|
|
condition: "$TRAVIS_OS_NAME =~ (linux) && $BUILD_TYPE =~ (default) && $CURVE =~ (libsodium) && -z $DRAFT"
|