From 8abd8fa6771ce83dec124909b1c7b40df538f0c8 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Wed, 19 Jun 2019 09:09:55 +0100 Subject: [PATCH] Add mbedtls build into Travis builds .travis.yml build-env/Dockerfile.build-env build-env/Dockerfile.develop scripts/build.sh scripts/dist.sh Update with mbedtls information --- .travis.yml | 1 + build-env/Dockerfile.build-env | 2 +- build-env/Dockerfile.develop | 2 +- scripts/build.sh | 2 ++ scripts/dist.sh | 2 ++ 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f622f6d9..eb6f7331 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ env: - PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=no EPOLL=no - PLATFORM=posix TESTS=yes TLS=openssl - PLATFORM=posix TESTS=yes TLS=tinydtls + - PLATFORM=posix TESTS=yes TLS=mbedtls matrix: exclude: diff --git a/build-env/Dockerfile.build-env b/build-env/Dockerfile.build-env index bef06171..1cf6079a 100644 --- a/build-env/Dockerfile.build-env +++ b/build-env/Dockerfile.build-env @@ -2,6 +2,6 @@ FROM debian:testing-slim RUN apt-get update && apt-get install -y autoconf automake gcc clang \ libtool libtool-bin make pkg-config libcunit1-dev libssl-dev \ - libgnutls28-dev exuberant-ctags git valgrind \ + libgnutls28-dev libmbedtls-dev exuberant-ctags git valgrind \ graphviz doxygen libxml2-utils xsltproc docbook-xml docbook-xsl asciidoc RUN apt-get clean diff --git a/build-env/Dockerfile.develop b/build-env/Dockerfile.develop index a52280ad..5d4d84a8 100644 --- a/build-env/Dockerfile.develop +++ b/build-env/Dockerfile.develop @@ -17,7 +17,7 @@ RUN git clone --depth 1 https://github.com/cabo/cn-cbor.git && cd cn-cbor && ./b FROM debian:testing-slim RUN apt-get update && apt-get install -y autoconf automake gcc g++ gdb libtool libtool-bin make \ - pkg-config libssl-dev libgnutls28-dev + pkg-config libssl-dev libgnutls28-dev libmbedtls-dev RUN apt-get install -y iproute2 lsof net-tools inetutils-ping netcat-openbsd less vim RUN apt-get clean diff --git a/scripts/build.sh b/scripts/build.sh index fca95920..1a70a234 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -15,6 +15,8 @@ case "x${TLS}" in ;; xgnutls) WITH_TLS="--with-gnutls" ;; + xmbedtls) WITH_TLS="--with-mbedtls" + ;; xtinydtls) WITH_TLS="--with-tinydtls" # Need this as libtinydtls.so has not been installed # as a part of the travis build diff --git a/scripts/dist.sh b/scripts/dist.sh index e7171de6..06d397fe 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -33,6 +33,8 @@ case "x${TLS}" in ;; xgnutls) WITH_TLS="--with-gnutls" ;; + xmbedtls) WITH_TLS="--with-mbedtls" + ;; xtinydtls) WITH_TLS="--with-tinydtls --disable-shared" ;; *) WITH_TLS="--with-gnutls"