From 99f2d4fe543a359834917a81527afc59a917b639 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 24 Sep 2020 13:38:29 +0300 Subject: [PATCH] travis-ci: build libstrophe against LibreSSL --- .travis.yml | 8 +++++--- travis/before_script.sh | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 travis/before_script.sh diff --git a/.travis.yml b/.travis.yml index 17ff1d0..7d5beba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,18 +6,20 @@ stages: - style - test before_script: - - ./bootstrap.sh + - ./travis/before_script.sh env: - CONFIGURE_OPT="--without-libxml2" - CONFIGURE_OPT="--with-libxml2" - CONFIGURE_OPT="--disable-tls" - CONFIGURE_OPT="--enable-cares" -script: ./configure ${CONFIGURE_OPT} CFLAGS="-Werror" && make && make check + - CONFIGURE_OPT="PKG_CONFIG_PATH=${HOME}/libressl/lib/pkgconfig" LIBRESSL=yes LIBRESSL_COMMIT="v3.1.4" + - CONFIGURE_OPT="PKG_CONFIG_PATH=${HOME}/libressl/lib/pkgconfig" LIBRESSL=yes LIBRESSL_COMMIT="v2.1.7" +script: ./bootstrap.sh && ./configure ${CONFIGURE_OPT} CFLAGS="-Werror" && make && make check jobs: include: - stage: style name: "Check code style" - script: ./configure && make format && git diff --exit-code + script: ./bootstrap.sh && ./configure && make format && git diff --exit-code env: - CONFIGURE_OPT="" matrix: diff --git a/travis/before_script.sh b/travis/before_script.sh new file mode 100755 index 0000000..4b37626 --- /dev/null +++ b/travis/before_script.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ "x$LIBRESSL" = "xyes" ]; then + cd "$HOME" + git clone https://github.com/libressl-portable/portable.git libressl-git + cd libressl-git + if [ -n "$LIBRESSL_COMMIT" ]; then + git checkout "$LIBRESSL_COMMIT" + fi + ./autogen.sh + ./configure --prefix="$HOME/libressl" + make -j"$(nproc)" + make install +fi