]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - .travis.yml
client: fix parameter order
[thirdparty/lldpd.git] / .travis.yml
index 827a4d3cd1fed8b1e8436741cfdd17f2f1d9c6a2..0080b2ef46f51b2fcc547a61fed2a1d1dce07032 100644 (file)
@@ -1,22 +1,48 @@
 language: c
+group: deprecated-2017Q3
 os: linux
-compiler:
-  - clang
-  - gcc
+dist: trusty
+compiler: gcc
+sudo: require
 install:
-  - ./.travis/install.sh
+  - ./tests/ci/install.sh
 script:
-  - ./.travis/run.sh
+  - ./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"
+  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: osx
+      compiler: clang
+      env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml"
     - os: osx
       compiler: clang
-      env: LLDPD_CONFIG_ARGS="--with-embedded-libevent"
+      env: 
+        - MAKE_ARGS=""
+        - LLDPD_CONFIG_ARGS="--with-embedded-libevent"
     - os: osx
       compiler: clang
-      env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json"
+      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"