mirror of
https://github.com/strophe/libstrophe.git
synced 2026-08-04 11:06:20 +00:00
travis-ci: build libstrophe against LibreSSL
This commit is contained in:
@@ -6,18 +6,20 @@ stages:
|
|||||||
- style
|
- style
|
||||||
- test
|
- test
|
||||||
before_script:
|
before_script:
|
||||||
- ./bootstrap.sh
|
- ./travis/before_script.sh
|
||||||
env:
|
env:
|
||||||
- CONFIGURE_OPT="--without-libxml2"
|
- CONFIGURE_OPT="--without-libxml2"
|
||||||
- CONFIGURE_OPT="--with-libxml2"
|
- CONFIGURE_OPT="--with-libxml2"
|
||||||
- CONFIGURE_OPT="--disable-tls"
|
- CONFIGURE_OPT="--disable-tls"
|
||||||
- CONFIGURE_OPT="--enable-cares"
|
- 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:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: style
|
- stage: style
|
||||||
name: "Check code style"
|
name: "Check code style"
|
||||||
script: ./configure && make format && git diff --exit-code
|
script: ./bootstrap.sh && ./configure && make format && git diff --exit-code
|
||||||
env:
|
env:
|
||||||
- CONFIGURE_OPT=""
|
- CONFIGURE_OPT=""
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
14
travis/before_script.sh
Executable file
14
travis/before_script.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user