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 18:56:11 +01:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2016-03-19 16:30:59 +00:00
|
|
|
dist: trusty
|
|
|
|
|
2014-11-02 17:33:23 -08:00
|
|
|
env:
|
2016-02-11 22:06:33 +00:00
|
|
|
- BUILD_TYPE=default CURVE=tweetnacl
|
|
|
|
- BUILD_TYPE=android CURVE=tweetnacl
|
|
|
|
- BUILD_TYPE=cmake CURVE=tweetnacl
|
2016-02-12 23:22:51 +00:00
|
|
|
- BUILD_TYPE=default CURVE=libsodium
|
2014-11-04 12:57:39 -08:00
|
|
|
- BUILD_TYPE=default
|
2016-03-13 19:52:31 +00:00
|
|
|
- BUILD_TYPE=coverage CURVE=tweetnacl
|
2016-02-05 21:05:11 +00:00
|
|
|
- BUILD_TYPE=valgrind CURVE=tweetnacl
|
2016-03-13 19:52:31 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- env: BUILD_TYPE=coverage CURVE=tweetnacl
|
|
|
|
os: osx
|
2016-02-05 21:05:11 +00:00
|
|
|
- env: BUILD_TYPE=valgrind CURVE=tweetnacl
|
|
|
|
os: osx
|
2013-09-12 12:46:43 +02:00
|
|
|
|
2016-03-19 16:30:59 +00:00
|
|
|
sudo: required
|
2015-08-16 18:55:43 +01:00
|
|
|
|
2016-02-08 12:46:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- cmake
|
2016-03-13 19:52:31 +00:00
|
|
|
- lcov
|
2016-02-05 21:05:11 +00:00
|
|
|
- valgrind
|
2016-02-08 12:46:49 +00:00
|
|
|
|
2015-08-17 17:06:56 +01:00
|
|
|
before_install:
|
|
|
|
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils ; fi
|
|
|
|
|
2015-08-02 19:20:34 +01: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 16:30:59 +00: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:20:34 +01:00
|
|
|
|
2014-11-04 12:57:39 -08:00
|
|
|
# Build and check this project according to the BUILD_TYPE
|
2014-11-02 17:33:23 -08:00
|
|
|
script: ./ci_build.sh
|