add code style check to travis
This commit is contained in:
committed by
Dmitry Podgorny
parent
2e21d5a021
commit
eef07cef36
27
.travis.yml
27
.travis.yml
@@ -1,15 +1,24 @@
|
|||||||
language: c
|
language: c
|
||||||
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
|
- sudo apt-get -y install libtool pkg-config libexpat1-dev libxml2-dev libssl-dev libc-ares-dev dos2unix
|
||||||
|
stages:
|
||||||
|
- style
|
||||||
|
- test
|
||||||
before_script:
|
before_script:
|
||||||
- ./bootstrap.sh
|
- ./bootstrap.sh
|
||||||
script:
|
|
||||||
- ./configure ${CONFIGURE_OPT} CFLAGS="-Werror" && make && make check
|
|
||||||
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
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- stage: style
|
||||||
|
name: "Check code style"
|
||||||
|
script: ./configure && make format && git diff --exit-code
|
||||||
|
env:
|
||||||
|
- CONFIGURE_OPT=""
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|||||||
Reference in New Issue
Block a user