mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
9d2f8d4b80
And we need that $(echo /path/*) otherwise bash will expand it only during assignment that variable to another one, and this doesn't work correctly.
66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
os:
|
|
- linux
|
|
- osx
|
|
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"
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_DEBUG_MODE=ON"
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_MM_REPLACEMENT=ON"
|
|
- EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS="-DEVENT__ENABLE_VERBOSE_DEBUG=ON"
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS=""
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-openssl"
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-thread-support"
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-debug-mode"
|
|
- EVENT_BUILD_METHOD=autotools EVENT_CONFIGURE_OPTIONS="--disable-malloc-replacement"
|
|
language: c
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
before_install:
|
|
- 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;
|
|
if [ "$CC" == "gcc" ]; then
|
|
export CC=$(ls -t /usr/local/bin/gcc-?.?);
|
|
fi
|
|
|
|
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;
|
|
fi
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- zlib1g-dev
|
|
- libssl-dev
|
|
- build-essential
|
|
- automake
|
|
- autoconf
|
|
- cmake
|
|
script:
|
|
- 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
|
|
notifications:
|
|
irc: "irc.oftc.net#libevent"
|