travis-ci: update travis config
- 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)
This commit is contained in:
18
.travis.yml
18
.travis.yml
@@ -1,26 +1,26 @@
|
|||||||
language: c
|
language: c
|
||||||
|
dist: focal
|
||||||
install:
|
install:
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get -y install libtool pkg-config libexpat1-dev libxml2-dev libssl-dev libc-ares-dev dos2unix
|
- sudo apt-get -y install libtool pkg-config libexpat1-dev libxml2-dev libssl-dev libgnutls28-dev libc-ares-dev dos2unix
|
||||||
stages:
|
stages:
|
||||||
- style
|
- style
|
||||||
- test
|
- test
|
||||||
before_script:
|
|
||||||
- ./travis/before_script.sh
|
|
||||||
env:
|
env:
|
||||||
- CONFIGURE_OPT="--without-libxml2"
|
- CONFIGURE_OPT="--without-libxml2"
|
||||||
- CONFIGURE_OPT="--with-libxml2"
|
- CONFIGURE_OPT="--with-libxml2"
|
||||||
|
- CONFIGURE_OPT="--with-gnutls"
|
||||||
- CONFIGURE_OPT="--disable-tls"
|
- CONFIGURE_OPT="--disable-tls"
|
||||||
- CONFIGURE_OPT="--enable-cares"
|
- 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="v3.1.4"
|
||||||
- CONFIGURE_OPT="PKG_CONFIG_PATH=${HOME}/libressl/lib/pkgconfig" LIBRESSL=yes LIBRESSL_COMMIT="v2.1.7"
|
- 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
|
before_script: ./travis/before_script.sh
|
||||||
|
script: ./bootstrap.sh && ./configure ${CONFIGURE_OPT} CFLAGS="-Werror -g3" && make && make check
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: style
|
- stage: style
|
||||||
name: "Check code style"
|
name: "Check coding style"
|
||||||
|
env: CONFIGURE_OPT=""
|
||||||
script: ./bootstrap.sh && ./configure && make format && git diff --exit-code
|
script: ./bootstrap.sh && ./configure && make format && git diff --exit-code
|
||||||
env:
|
allow_failures:
|
||||||
- CONFIGURE_OPT=""
|
- stage: style
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user