+++ /dev/null
-#!/bin/bash
-set -eux
-
-cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib
-make
-
-cp ./bin/gost.so ${PREFIX}/lib/engines-1.1
-
-export LD_LIBRARY_PATH=${PREFIX}/lib
-export PATH=${PREFIX}/bin:${PATH}
-export OPENSSL_ENGINES=${PREFIX}/lib/engines-1.1
-
-prove -v test/{00-engine.t,01-digest.t,02-mac.t,03-encrypt.t}
-
env:
global:
- - PREFIX="${HOME}/opt"
+ - PREFIX=${HOME}/opt
+ - LD_LIBRARY_PATH=${PREFIX}/lib
+ - PATH=${PREFIX}/bin:${PATH}
+ - OPENSSL_ENGINES=${TRAVIS_BUILD_DIR}/bin
matrix:
include:
# compiler: gcc
before_script:
- - .ci/build-openssl.sh > build.log 2>&1 || (cat build.log && exit 1)
+ - 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:
- - .ci/build-check.sh
+ - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib && make
+ - prove -v test/{00-engine.t,01-digest.t,02-mac.t,03-encrypt.t}