]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - .travis.yml
tests: display tests/test-suite.log on errors
[thirdparty/lldpd.git] / .travis.yml
index 08f95b2ab3ee8bc77b62562ea223fd4e0f834074..65de7f51766aeba4da3fcc6ed45e409d8243884b 100644 (file)
@@ -1,15 +1,50 @@
-language: "python"
+language: c
+os: linux
+dist: bionic
+compiler: gcc
+sudo: require
 install:
-  - "sudo aptitude -y -q install automake autoconf libtool pkg-config"
-  - "sudo aptitude -y -q install libsnmp-dev libxml2-dev check"
-script: "./autogen.sh && ./configure $LLDPD_CONFIG_ARGS && make && make check"
+  - ./tests/ci/install.sh
+script:
+  - ./tests/ci/run.sh
 env:
-  - LLDPD_CONFIG_ARGS=""
-  - LLDPD_CONFIG_ARGS="--disable-lldpmed"
-  - LLDPD_CONFIG_ARGS="--disable-dot1"
-  - LLDPD_CONFIG_ARGS="--disable-dot3"
-  - LLDPD_CONFIG_ARGS="--with-snmp"
-branches:
-  only:
-    - master
-    - branch-0.5
+  matrix:
+    - LLDPD_CONFIG_ARGS=""
+    - LLDPD_CONFIG_ARGS="--with-embedded-libevent"
+    - LLDPD_CONFIG_ARGS="--disable-shared --enable-static"
+    - LLDPD_CONFIG_ARGS="--disable-privsep --with-snmp"
+    - LLDPD_CONFIG_ARGS="--with-snmp --disable-lldpmed --disable-dot1 --disable-dot3 --disable-custom"
+    - LLDPD_CONFIG_ARGS="--enable-oldies"
+    - LLDPD_CONFIG_ARGS="--with-seccomp"
+matrix:
+  include:
+    - os: linux
+      compiler: clang
+      env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml"
+    - os: linux
+      arch: ppc64el
+      env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml"
+    - os: osx
+      compiler: clang
+      env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml"
+    - os: osx
+      compiler: clang
+      env: 
+        - MAKE_ARGS=""
+        - LLDPD_CONFIG_ARGS="--with-embedded-libevent"
+    - os: osx
+      compiler: clang
+      if: tag =~ ^[0-9]
+      env:
+        - MAKE_ARGS=""
+        - LLDPD_UPLOAD=1
+        - LLDPD_CONFIG_ARGS="--prefix=/usr/local --localstatedir=/var --sysconfdir=/private/etc --with-embedded-libevent --without-snmp --without-xml"
+deploy:
+  - provider: s3
+    skip_cleanup: true
+    local_dir: upload
+    bucket: lldpd-releases
+    acl: public_read
+    on:
+      all_branches: true
+      condition: "$LLDPD_UPLOAD = 1"