]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
move .ci scripts into .travis.yml 65/head
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 28 Jun 2018 08:29:53 +0000 (13:29 +0500)
committerIlya Shipitsin <chipitsine@gmail.com>
Thu, 28 Jun 2018 08:29:53 +0000 (13:29 +0500)
.ci/build-check.sh [deleted file]
.ci/build-openssl.sh [deleted file]
.travis.yml

diff --git a/.ci/build-check.sh b/.ci/build-check.sh
deleted file mode 100755 (executable)
index 3e843f6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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}
-
diff --git a/.ci/build-openssl.sh b/.ci/build-openssl.sh
deleted file mode 100755 (executable)
index 4c85b94..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/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
index 128a15b85311de2f82bc9427b780cf9019059d23..b3d8ad107d9cdc81acd1a8f1c3d293a1620c1350 100644 (file)
@@ -7,7 +7,10 @@ language: c
 
 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:
@@ -22,7 +25,11 @@ matrix:
 #      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}