From e172e6865baeb00a73175636e64690c520746cb1 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sun, 25 Nov 2018 16:02:47 +0000 Subject: [PATCH] Include GnuTLs in the Travis build .travis.yml Add in the gnutls build. build-env/Dockerfile.build-env build-env/Dockerfile.develop Add in libgnutls28-dev to the apt-get list. scripts/build.sh scripts/dist.sh Support TLS set to gnutls for building. --- .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 81559003..204dd80a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ services: env: - PLATFORM=posix TESTS=yes TLS=no - PLATFORM=posix TESTS=yes TLS=openssl + - PLATFORM=posix TESTS=yes TLS=gnutls - PLATFORM=posix TESTS=yes TLS=tinydtls - PLATFORM=contiki TLS=no - PLATFORM=lwip TLS=no diff --git a/build-env/Dockerfile.build-env b/build-env/Dockerfile.build-env index a82f2613..bef06171 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 \ - exuberant-ctags git valgrind \ + libgnutls28-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 579b6764..8d7871c1 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 + pkg-config libssl-dev libgnutls28-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 fc73b2ad..db97e69b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -10,6 +10,8 @@ case "x${TLS}" in ;; xopenssl) WITH_TLS="--with-openssl" ;; + xgnutls) WITH_TLS="--with-gnutls" + ;; xtinydtls) WITH_TLS="--with-tinydtls --disable-shared" ;; *) WITH_TLS="--with-gnutls" diff --git a/scripts/dist.sh b/scripts/dist.sh index 0987f5aa..e7171de6 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -31,6 +31,8 @@ case "x${TLS}" in ;; xopenssl) WITH_TLS="--with-openssl" ;; + xgnutls) WITH_TLS="--with-gnutls" + ;; xtinydtls) WITH_TLS="--with-tinydtls --disable-shared" ;; *) WITH_TLS="--with-gnutls"