summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2020-09-29 12:54:15 +0200
committerBenjamin Berg <bberg@redhat.com>2021-02-18 11:59:54 +0100
commite5589a0ec276cbffce180f6884fad3c233675750 (patch)
tree054b948eb41891c6cbffba1afd77c9528bc1af1c
parent966703057d6424f89bdf1fce29dfc916a607a3cd (diff)
ci: Include SDCP test binary in image
-rw-r--r--.gitlab-ci.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e6f736c..bd4086f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -149,5 +149,17 @@ container_fedora_build:
- $CI_PIPELINE_SOURCE == "schedule" && $CRON_TASK == "BUILD_CI_IMAGES"
variables:
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
- # a list of packages to install
- FDO_DISTRIBUTION_PACKAGES: $LIBFPRINT_DEPENDENCIES
+ # a list of packages to install; we only include mbedtls here
+ FDO_DISTRIBUTION_PACKAGES: $LIBFPRINT_DEPENDENCIES mbedtls-devel
+ FDO_DISTRIBUTION_EXEC: |
+ cd /tmp
+ mkdir -p /usr/local/bin
+ git clone https://github.com/benzea/SecureDeviceConnectionProtocol.git
+ # Don't bother with cmake
+ gcc -l mbedcrypto -I SecureDeviceConnectionProtocol/src/include \
+ SecureDeviceConnectionProtocol/src/test/virt_device.c \
+ SecureDeviceConnectionProtocol/src/client/client.c \
+ SecureDeviceConnectionProtocol/src/test/helpers.c \
+ SecureDeviceConnectionProtocol/src/test/testkeys.c \
+ -o /usr/local/bin/sdcp_virt_device
+ rm -rf SecureDeviceConnectionProtocol