]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
initial travis-ci support
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 16 Jun 2018 08:18:57 +0000 (13:18 +0500)
committerIlya Shipitsin <chipitsine@gmail.com>
Sat, 16 Jun 2018 08:18:57 +0000 (13:18 +0500)
.ci/build-check.sh [new file with mode: 0755]
.ci/build-openssl.sh [new file with mode: 0755]
.travis.yml [new file with mode: 0644]

diff --git a/.ci/build-check.sh b/.ci/build-check.sh
new file mode 100755 (executable)
index 0000000..e60045c
--- /dev/null
@@ -0,0 +1,11 @@
+#!/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
diff --git a/.ci/build-openssl.sh b/.ci/build-openssl.sh
new file mode 100755 (executable)
index 0000000..1e3064f
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..0c412ca
--- /dev/null
@@ -0,0 +1,25 @@
+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