-language: "python"
+language: c
+os: linux
+compiler: gcc
+sudo: require
install:
- - "sudo apt-get -qq update"
- - "sudo apt-get -y install automake autoconf libtool pkg-config"
- - "sudo apt-get -y install libsnmp-dev libxml2-dev libjansson-dev libevent-dev libreadline-dev check"
-script: "./autogen.sh && ./configure $LLDPD_CONFIG_ARGS && make && make check && make distcheck && sudo make install"
+ - ./tests/ci/install.sh
+script:
+ - ./tests/ci/run.sh
env:
- - LLDPD_CONFIG_ARGS=""
- - LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json --disable-lldpmed --disable-dot1 --disable-dot3"
-branches:
- only:
- - master
- - branch-0.5
+ global:
+ - secure: "1qAHFxnz0gIxMMl9DAVzoPvVSpOacWT2G6ItcaoaVe1r4OANzpoHBlbyHX2I/1KFe+BohzjS9kXA4NrlPaL81qfvu9E6qZ9yai/+0gHdzZttB2uvdyFXyDVye3CHHDlYMfRRQf6C+eYs5CKeedWq9Q3arO1GyAWiL9RcW1466sg="
+ - COVERITY_SCAN_BRANCH_PATTERN=coverity_scan
+ - COVERITY_SCAN_NOTIFICATION_EMAIL="bernat@luffy.cx"
+ - RUN_COVERITY=0
+ matrix:
+ - LLDPD_CONFIG_ARGS=""
+ - LLDPD_CONFIG_ARGS="--with-embedded-libevent"
+ - LLDPD_CONFIG_ARGS="--disable-privsep --with-snmp"
+ - LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json --disable-lldpmed --disable-dot1 --disable-dot3 --disable-custom --enable-oldies"
+matrix:
+ include:
+ - os: linux
+ compiler: clang
+ env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json"
+ - os: osx
+ compiler: clang
+ env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json"
+ - os: linux
+ compiler: gcc
+ env:
+ - RUN_COVERITY=1
+ - LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json"