]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - .travis.yml
tests/integration: reduce the number of emulated neighbor
[thirdparty/lldpd.git] / .travis.yml
index fbea7996ee529d721b6e487e7f83c43c4fbe5497..958f6cc605ac969e1ceb6aecaf313829270b0f6d 100644 (file)
@@ -1,20 +1,32 @@
 language: c
-os:
-  - linux
-  - osx
-compiler:
-  - clang
-  - gcc
+os: linux
+compiler: gcc
+sudo: require
 install:
-  - [[ "$(uname -s)" != "Darwin" ]] || sudo apt-get -qqy update
-  - [[ "$(uname -s)" != "Darwin" ]] || sudo apt-get -qqy install automake autoconf libtool pkg-config 
-  - [[ "$(uname -s)" != "Darwin" ]] || sudo apt-get -qqy install libsnmp-dev libxml2-dev libjansson-dev libevent-dev libreadline-dev libbsd-dev check
-  - [[ "$(uname -s)" == "Darwin" ]] && brew update
-  - [[ "$(uname -s)" == "Darwin" ]] && brew install pkg-config autoconf automake libtool
-  - [[ "$(uname -s)" == "Darwin" ]] && brew install readline libevent net-snmp jansson libxml2 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-embedded-libevent"
-  - LLDPD_CONFIG_ARGS="--disable-privsep --with-snmp"
-  - LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json --disable-lldpmed --disable-dot1 --disable-dot3"
+  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"