| language: c |
| |
| matrix: |
| include: |
| - os: windows |
| compiler: clang |
| env: BUILDDIR="..\build\Debug" |
| - os: windows |
| compiler: gcc |
| env: BUILDDIR="..\build\Debug" |
| - os: linux |
| compiler: clang |
| env: BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_ZLIB=OFF" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_BZIP=OFF" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_LZMA=OFF" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_AES=OFF" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_PKCRYPT=OFF" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DCOMPRESS_ONLY=ON" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DDECOMPRESS_ONLY=ON" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_PKCRYPT=OFF -DUSE_AES=OFF" BUILDDIR="../build" |
| - os: linux |
| compiler: clang |
| env: TOOL="-DUSE_OPENSSL=ON" BUILDDIR="../build" |
| - os: linux |
| compiler: gcc |
| env: BUILDDIR="../build" |
| - os: osx |
| compiler: clang |
| env: BUILDDIR="../build" |
| - os: osx |
| compiler: gcc |
| env: BUILDDIR="../build" |
| - os: osx |
| compiler: clang |
| env: TOOL="-DUSE_LIBCOMP=ON" BUILDDIR="../build" |
| - os: osx |
| compiler: gcc |
| env: TOOL="-DUSE_LIBCOMP=ON" BUILDDIR="../build" |
| - os: osx |
| compiler: clang |
| env: TOOL="-DUSE_OPENSSL=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_INCLUDE_DIRS=/usr/local/opt/openssl/include -DOPENSSL_CRYPTO_LIBRARY=/usr/local/opt/openssl/lib/libcrypto.dylib -DOPENSSL_SSL_LIBRARY=/usr/local/opt/openssl/lib/libssl.dylib" BUILDDIR="../build" |
| |
| before_install: |
| - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libbsd-dev; fi |
| - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libssl-dev; fi |
| - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl; fi |
| |
| before_script: |
| - mkdir build |
| - cd build |
| - cmake .. -DBUILD_TEST=ON -DBUILD_UNIT_TEST=ON $TOOL |
| |
| script: |
| - cmake --build . |
| - ctest --output-on-failure -C Debug |