aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2020-03-29 15:13:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-03-31 14:39:21 +0200
commitc3b865ea385281ca83f33191e413c83c344ba14e (patch)
treef047a0aad236ce790f25564c7e96930453114d6a /scripts
parent0736ee73d346a521ad10c9bcce5839386a1cc47a (diff)
CI: add build with ngtcp2 + gnutls on Travis CI
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis/before_script.sh30
1 files changed, 24 insertions, 6 deletions
diff --git a/scripts/travis/before_script.sh b/scripts/travis/before_script.sh
index 32fc4b45a..4e8164caf 100755
--- a/scripts/travis/before_script.sh
+++ b/scripts/travis/before_script.sh
@@ -25,12 +25,30 @@ set -eo pipefail
./buildconf
if [ "$NGTCP2" = yes ]; then
- cd $HOME
- git clone --depth 1 -b OpenSSL_1_1_1d-quic-draft-27 https://github.com/tatsuhiro-t/openssl possl
- cd possl
- ./config enable-tls1_3 --prefix=$HOME/ngbuild
- make
- make install_sw
+ if [ "$TRAVIS_OS_NAME" = linux -a "$GNUTLS" ]; then
+ cd $HOME
+ git clone --depth 1 https://gitlab.com/gnutls/nettle.git
+ cd nettle
+ ./.bootstrap
+ ./configure LDFLAGS="-Wl,-rpath,$HOME/ngbuild/lib" --disable-documentation --prefix=$HOME/ngbuild
+ make
+ make install
+
+ cd $HOME
+ git clone --depth 1 -b tmp-quic https://gitlab.com/gnutls/gnutls.git pgtls
+ cd pgtls
+ ./bootstrap
+ ./configure PKG_CONFIG_PATH=$HOME/ngbuild/lib/pkgconfig LDFLAGS="-Wl,-rpath,$HOME/ngbuild/lib" --with-included-libtasn1 --with-included-unistring --disable-guile --disable-doc --prefix=$HOME/ngbuild
+ make
+ make install
+ else
+ cd $HOME
+ git clone --depth 1 -b OpenSSL_1_1_1d-quic-draft-27 https://github.com/tatsuhiro-t/openssl possl
+ cd possl
+ ./config enable-tls1_3 --prefix=$HOME/ngbuild
+ make
+ make install_sw
+ fi
cd $HOME
git clone --depth 1 https://github.com/ngtcp2/nghttp3