1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 00:58:48 -05:00

travis: build libpsl and make builds use it

closes #2471
This commit is contained in:
Daniel Stenberg 2018-04-09 00:11:04 +02:00
parent ac6c86732b
commit 249a7c9dac
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1,5 +1,14 @@
language: c language: c
sudo: required sudo: required
cache:
directories:
- $HOME/libpsl-0.20.1
- $HOME/libidn2-2.0.4
env:
global:
- LD_LIBRARY_PATH=/usr/local/lib
addons: addons:
apt: apt:
config: config:
@ -22,6 +31,8 @@ addons:
- libssh2-1-dev - libssh2-1-dev
- libssh-dev - libssh-dev
- krb5-user - krb5-user
- autopoint # for libpsl that needs autoreconf that uses gettext that needs it
- libunistring-dev # for libidn2 neeed by libpsl
matrix: matrix:
include: include:
@ -48,7 +59,7 @@ matrix:
- os: linux - os: linux
compiler: gcc compiler: gcc
dist: trusty dist: trusty
env: T=novalgrind BORINGSSL=yes -C="--with-ssl=$HOME/boringssl" LD_LIBRARY_PATH=/home/travis/boringssl/lib env: T=novalgrind BORINGSSL=yes -C="--with-ssl=$HOME/boringssl" LD_LIBRARY_PATH=/home/travis/boringssl/lib:/usr/local/lib
- os: linux - os: linux
compiler: clang compiler: clang
dist: trusty dist: trusty
@ -123,6 +134,7 @@ before_script:
sudo make install sudo make install
) )
fi fi
- |
if [ "$TRAVIS_OS_NAME" = linux -a "$BORINGSSL" ]; then if [ "$TRAVIS_OS_NAME" = linux -a "$BORINGSSL" ]; then
(cd $HOME && (cd $HOME &&
git clone --depth=1 https://boringssl.googlesource.com/boringssl && git clone --depth=1 https://boringssl.googlesource.com/boringssl &&
@ -139,6 +151,34 @@ before_script:
echo "BoringSSL lib dir: "`pwd` && echo "BoringSSL lib dir: "`pwd` &&
export LIBS=-lpthread ) export LIBS=-lpthread )
fi fi
- |
if [ $TRAVIS_OS_NAME = linux ]; then
if [ ! -e $HOME/libidn2-2.0.4/Makefile ]; then
(cd $HOME && \
curl -LO https://ftp.gnu.org/gnu/libidn/libidn2-2.0.4.tar.gz && \
tar -xzf libidn2-2.0.4.tar.gz && \
cd libidn2-2.0.4 && \
./configure && \
make)
fi
fi
- |
if [ $TRAVIS_OS_NAME = linux ]; then
if [ ! -e $HOME/libpsl-0.20.1/Makefile ]; then
(cd $HOME && \
curl -LO https://github.com/rockdaboot/libpsl/releases/download/libpsl-0.20.1/libpsl-0.20.1.tar.gz && \
tar -xzf libpsl-0.20.1.tar.gz && \
cd libpsl-0.20.1 && \
autoreconf -i && \
./configure && \
make)
fi
fi
- |
if [ $TRAVIS_OS_NAME = linux ]; then
(cd $HOME/libidn2-2.0.4 && sudo make install)
(cd $HOME/libpsl-0.20.1 && sudo make install)
fi
script: script:
- | - |