addons:
apt:
- packages:
- - cpanminus
+ packages: [ cpanminus ]
+ homebrew:
+ packages: [ cpanminus ]
env:
global:
- PREFIX=${HOME}/opt
- - LD_LIBRARY_PATH=${PREFIX}/lib
- PATH=${PREFIX}/bin:${PATH}
+ - OPENSSL_BRANCH=master
matrix:
include:
- - env: OPENSSL_BRANCH=master
- os: linux
+ - os: linux
compiler: gcc
- - env:
- - OPENSSL_BRANCH=master
- - ASAN=-DASAN=1
+ - env: ASAN=-DASAN=1
os: linux
compiler: gcc
-# - env: OPENSSL_BRANCH=OpenSSL_1_1_0-stable
-# os: linux
-# compiler: gcc
-# - env: OPENSSL_BRANCH=OpenSSL_1_0_2-stable
-# os: linux
-# compiler: gcc
+ - os: osx
+ compiler: clang
+
before_script:
- sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1)
- cd ..
script:
+ - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}"; fi
+ - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export DYLD_LIBRARY_PATH="${PREFIX}/lib:${DYLD_LIBRARY_PATH:-}"; fi
- mkdir build
- cd build
- cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${ASAN} ..
- make
+ - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then cp bin/gost.{dylib,so}; fi # this hack is most probably related to https://github.com/openssl/openssl/issues/727
- make test CTEST_OUTPUT_ON_FAILURE=1