2016-05-09 18:14:31 +03:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2016-10-17 01:05:38 +03:00
|
|
|
sudo: false
|
2017-01-20 16:50:04 +03:00
|
|
|
dist: trusty
|
2016-11-01 23:39:41 +03:00
|
|
|
|
2014-01-24 16:30:17 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
2016-11-01 23:39:41 +03:00
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__COVERAGE=ON -DCMAKE_BUILD_TYPE=debug" COVERALLS=yes
|
2014-01-24 16:30:17 +00:00
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS=""
|
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON"
|
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_THREAD_SUPPORT=ON"
|
2015-09-30 11:13:44 +03:00
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_DEBUG_MODE=ON"
|
2016-05-09 18:48:56 +03:00
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_MM_REPLACEMENT=ON"
|
2015-09-30 11:13:44 +03:00
|
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS=""
|
2016-05-09 18:48:56 +03:00
|
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-openssl"
|
|
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-thread-support"
|
2015-09-30 11:13:44 +03:00
|
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-debug-mode"
|
2016-05-09 18:48:56 +03:00
|
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-malloc-replacement"
|
2016-11-01 23:39:41 +03:00
|
|
|
|
2017-03-12 13:12:53 +03:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
env: EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__COVERAGE=ON -DCMAKE_BUILD_TYPE=debug" COVERALLS=yes
|
|
|
|
|
2014-01-24 16:30:17 +00:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2016-11-01 23:39:41 +03:00
|
|
|
|
2016-05-09 18:14:31 +03:00
|
|
|
before_install:
|
2016-11-01 23:39:41 +03:00
|
|
|
- if [ -n "$COVERALLS" ]; then
|
|
|
|
pip install --user cpp-coveralls;
|
|
|
|
fi
|
2017-01-20 16:31:17 +03:00
|
|
|
- export JOBS=20
|
|
|
|
- export TIMEOUT=50
|
2016-08-11 09:27:50 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
|
|
brew update;
|
|
|
|
brew uninstall libtool && brew install libtool;
|
|
|
|
brew install openssl;
|
2016-11-03 15:00:15 +03:00
|
|
|
brew install lcov;
|
2016-10-16 21:48:59 +03:00
|
|
|
if [ "$CC" == "gcc" ]; then
|
|
|
|
export CC=$(ls -t /usr/local/bin/gcc-?.?);
|
|
|
|
fi
|
2016-10-16 23:46:09 +03:00
|
|
|
|
|
|
|
export OPENSSL_ROOT=$(echo /usr/local/Cellar/openssl/*);
|
|
|
|
export
|
|
|
|
CMAKE_INCLUDE_PATH=$OPENSSL_ROOT/include
|
|
|
|
CMAKE_LIBRARY_PATH=$OPENSSL_ROOT/lib;
|
|
|
|
export
|
|
|
|
CFLAGS=-I$CMAKE_INCLUDE_PATH
|
|
|
|
LDFLAGS=-L$CMAKE_LIBRARY_PATH;
|
2017-01-20 16:31:17 +03:00
|
|
|
|
|
|
|
export JOBS=4;
|
2016-08-11 09:27:50 +03:00
|
|
|
fi
|
2016-11-01 23:39:41 +03:00
|
|
|
|
2016-05-09 18:14:31 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
2017-01-20 16:50:04 +03:00
|
|
|
sources:
|
|
|
|
- xenial
|
|
|
|
- sourceline: 'deb http://archive.ubuntu.com/ubuntu xenial main'
|
2016-05-09 18:14:31 +03:00
|
|
|
packages:
|
2017-01-20 16:50:04 +03:00
|
|
|
- zlib1g-dev
|
|
|
|
- libssl-dev
|
|
|
|
- build-essential
|
|
|
|
- automake
|
|
|
|
- autoconf
|
|
|
|
- cmake
|
|
|
|
- lcov
|
2016-11-01 23:39:41 +03:00
|
|
|
|
2014-01-24 16:30:17 +00:00
|
|
|
script:
|
2016-08-11 09:27:50 +03:00
|
|
|
- if [ "$EVENT_BUILD_METHOD" = "autotools" ]; then
|
|
|
|
./autogen.sh &&
|
|
|
|
./configure $EVENT_CONFIGURE_OPTIONS &&
|
|
|
|
make &&
|
2017-03-09 09:32:43 +03:00
|
|
|
travis_retry travis_wait $TIMEOUT make -j $JOBS verify;
|
2016-08-11 09:27:50 +03:00
|
|
|
fi
|
|
|
|
- if [ "$EVENT_BUILD_METHOD" = "cmake" ]; then
|
2017-01-20 16:31:17 +03:00
|
|
|
export
|
|
|
|
CTEST_PARALLEL_LEVEL=$JOBS
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=1;
|
|
|
|
|
2016-08-11 09:27:50 +03:00
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
cmake .. $EVENT_CMAKE_OPTIONS &&
|
2017-03-09 09:32:43 +03:00
|
|
|
travis_retry travis_wait $TIMEOUT
|
2017-01-20 16:31:17 +03:00
|
|
|
cmake --build . --target verify;
|
2016-08-11 09:27:50 +03:00
|
|
|
fi
|
2016-11-01 23:39:41 +03:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [ -n "$COVERALLS" ]; then
|
|
|
|
coveralls
|
|
|
|
--build-root .
|
|
|
|
--root ..
|
|
|
|
--exclude test
|
|
|
|
--exclude sample
|
|
|
|
--exclude cmake
|
|
|
|
--exclude build/CMakeFiles/CheckTypeSize
|
|
|
|
--exclude build/CMakeFiles/CompilerIdC
|
|
|
|
--gcov-options '\-lp';
|
|
|
|
fi
|
|
|
|
|
2015-05-12 15:43:03 -04:00
|
|
|
notifications:
|
2016-05-09 18:54:41 +03:00
|
|
|
irc: "irc.oftc.net#libevent"
|