- add gnutls option - fix style stage: 'matrix' and 'jobs' don't work together - switch to Ubuntu 20.04 (focal), because there is issue with gnutls-3.4.10 from Ubuntu 16.04 (see #177)
27 lines
954 B
YAML
27 lines
954 B
YAML
language: c
|
|
dist: focal
|
|
install:
|
|
- sudo apt-get update
|
|
- sudo apt-get -y install libtool pkg-config libexpat1-dev libxml2-dev libssl-dev libgnutls28-dev libc-ares-dev dos2unix
|
|
stages:
|
|
- style
|
|
- test
|
|
env:
|
|
- CONFIGURE_OPT="--without-libxml2"
|
|
- CONFIGURE_OPT="--with-libxml2"
|
|
- CONFIGURE_OPT="--with-gnutls"
|
|
- CONFIGURE_OPT="--disable-tls"
|
|
- CONFIGURE_OPT="--enable-cares"
|
|
- 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"
|
|
before_script: ./travis/before_script.sh
|
|
script: ./bootstrap.sh && ./configure ${CONFIGURE_OPT} CFLAGS="-Werror -g3" && make && make check
|
|
jobs:
|
|
include:
|
|
- stage: style
|
|
name: "Check coding style"
|
|
env: CONFIGURE_OPT=""
|
|
script: ./bootstrap.sh && ./configure && make format && git diff --exit-code
|
|
allow_failures:
|
|
- stage: style
|