From: Ilya Shipitsin Date: Sat, 18 May 2019 12:04:58 +0000 (+0500) Subject: travis-ci: add osx builds X-Git-Tag: v3.0.0~285^2 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=a0aeb9c7f3b57c09528bb8c73658d374cbd92f56;p=openssl-gost%2Fengine.git travis-ci: add osx builds --- diff --git a/.travis.yml b/.travis.yml index 6c1b262..47f49b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,31 +7,26 @@ language: c 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) @@ -41,8 +36,11 @@ before_script: - 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