aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/testing/travis/travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SoftHSMv2/testing/travis/travis.sh')
-rw-r--r--SoftHSMv2/testing/travis/travis.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/SoftHSMv2/testing/travis/travis.sh b/SoftHSMv2/testing/travis/travis.sh
new file mode 100644
index 0000000..6a1ca1f
--- /dev/null
+++ b/SoftHSMv2/testing/travis/travis.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+CONF_CRYPTO=""
+CONF_OBJSTORE=""
+
+case $CRYPTO in
+botan)
+ CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=botan --with-botan=/usr"
+ CONF_CRYPTO="$CONF_CRYPTO --disable-ecc --disable-gost"
+ ;;
+openssl)
+ CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=openssl --with-openssl=/usr"
+ CONF_CRYPTO="$CONF_CRYPTO --disable-gost"
+ openssl version -a
+ ;;
+*)
+ echo "Unknown crypto backend"
+ exit 1
+esac
+
+case $OBJSTORE in
+file)
+ CONF_OBJSTORE="$CONF_OBJSTORE"
+ ;;
+sqlite)
+ CONF_OBJSTORE="$CONF_OBJSTORE --with-objectstore-backend-db --with-migrate"
+ ;;
+*)
+ echo "Unknown objectstore backend"
+ exit 1
+esac
+
+sh autogen.sh && \
+./configure $CONF_CRYPTO $CONF_OBJSTORE && \
+make all check