]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - .travis.yml
tests/integration: reduce the number of emulated neighbor
[thirdparty/lldpd.git] / .travis.yml
index 4026df2dbdd69da7c900bf5e292bfbcf4f419e5a..958f6cc605ac969e1ceb6aecaf313829270b0f6d 100644 (file)
@@ -1,13 +1,32 @@
-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 libedit-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"