From 511f42367dbdcd6a53014a5ec1b9e3a58d6455a4 Mon Sep 17 00:00:00 2001 From: Gleb Fotengauer-Malinovskiy Date: Tue, 21 Aug 2018 19:13:15 +0300 Subject: [PATCH] Add travis-ci support --- .travis.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4d68008 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +sudo: required +dist: trusty + +os: linux + +language: c + +env: + global: + - PREFIX=${HOME}/opt + - LD_LIBRARY_PATH=${PREFIX}/lib + - PATH=${PREFIX}/bin:${PATH} + - OPENSSL_ENGINES=${TRAVIS_BUILD_DIR}/bin + +matrix: + include: + - env: OPENSSL_BRANCH=master + os: linux + compiler: gcc + - env: OPENSSL_BRANCH=OpenSSL_1_1_0-stable + os: linux + compiler: gcc + +before_script: + - git clone -b ${OPENSSL_BRANCH} https://github.com/openssl/openssl.git + - cd openssl + - ./config shared --prefix=${PREFIX} --openssldir=${PREFIX} && make all install_sw > build.log 2>&1 || (cat build.log && exit 1) + - cd .. + +script: + - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib && make VERBOSE=1 + - make test ARGS='--verbose' -- 2.39.5