2016-05-09 18:14:31 +03:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2014-01-24 16:30:17 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- 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"
|
|
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__ENABLE_VERBOSE_DEBUG=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"
|
2014-01-24 16:30:17 +00:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2016-05-09 18:14:31 +03:00
|
|
|
before_install:
|
2016-08-11 09:27:50 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
|
|
|
sudo apt-get update -qq;
|
|
|
|
fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
|
|
brew update;
|
|
|
|
brew uninstall libtool && brew install libtool;
|
|
|
|
brew install openssl;
|
2016-10-16 21:48:59 +03:00
|
|
|
if [ "$CC" == "gcc" ]; then
|
|
|
|
export CC=$(ls -t /usr/local/bin/gcc-?.?);
|
|
|
|
fi
|
2016-08-11 09:27:50 +03:00
|
|
|
fi
|
2016-05-09 18:14:31 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- zlib1g-dev
|
|
|
|
- libssl-dev
|
|
|
|
- build-essential
|
|
|
|
- automake
|
|
|
|
- autoconf
|
|
|
|
- cmake
|
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 &&
|
|
|
|
make verify;
|
|
|
|
fi
|
|
|
|
- if [ "$EVENT_BUILD_METHOD" = "cmake" ]; then
|
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
cmake .. $EVENT_CMAKE_OPTIONS &&
|
|
|
|
cmake --build . &&
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target verify;
|
|
|
|
fi
|
2015-05-12 15:43:03 -04:00
|
|
|
notifications:
|
2016-05-09 18:54:41 +03:00
|
|
|
irc: "irc.oftc.net#libevent"
|