--- /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
+
+${PREFIX}/bin/openssl ciphers |grep GOST
--- /dev/null
+#!/bin/bash
+set -eux
+
+git clone -b ${OPENSSL_BRANCH} https://github.com/openssl/openssl.git
+
+cd openssl
+./config shared --prefix=${PREFIX} --openssldir=${PREFIX}
+make all install_sw
+
+cat <<EOF >> ${PREFIX}/openssl.cnf
+openssl_conf = openssl_def
+
+[openssl_def]
+engines = engine_section
+
+[engine_section]
+gost = gost_section
+
+[gost_section]
+default_algorithms = ALL
+engine_id = gost
+CRYPT_PARAMS = id-Gost28147-89-CryptoPro-A-ParamSet
+EOF
--- /dev/null
+sudo: required
+dist: trusty
+
+os: linux
+
+language: c
+
+env:
+ global:
+ - PREFIX="${HOME}/opt"
+
+matrix:
+ include:
+ - env: OPENSSL_BRANCH=OpenSSL_1_1_0-stable
+ os: linux
+ compiler: gcc
+# - env: OPENSSL_BRANCH=OpenSSL_1_0_2-stable
+# os: linux
+# compiler: gcc
+
+before_script:
+ - .ci/build-openssl.sh > build.log 2>&1 || (cat build.log && exit 1)
+
+script:
+ - .ci/build-check.sh