From e5589a0ec276cbffce180f6884fad3c233675750 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 29 Sep 2020 12:54:15 +0200 Subject: [PATCH] ci: Include SDCP test binary in image --- .gitlab-ci.yml | 16 ++++++++++++++-- 1 file 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