.travis.yml: Use the "apt" and "homebrew" add-ons.
authorFlorian Forster <octo@collectd.org>
Tue, 12 Feb 2019 08:20:53 +0000 (09:20 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 12 Feb 2019 08:20:53 +0000 (09:20 +0100)
This might be more optimized than installing ourselves.

.travis.yml

index 593905d..39aaf10 100644 (file)
@@ -18,100 +18,6 @@ language: c
 before_install:
   # When building the coverity_scan branch, allow only the first job to continue to avoid travis-ci/travis-ci#1975.
   - if [[ "${TRAVIS_BRANCH}" == "coverity_scan" && ! "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then exit 0; fi
-  - if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
-    sudo apt-get update -qq &&
-    sudo apt-get install -qq --no-install-recommends
-      autotools-dev
-      iptables-dev
-      libatasmart-dev
-      libcap-dev
-      libcurl4-gnutls-dev
-      libdbi0-dev
-      libesmtp-dev
-      libganglia1-dev
-      libgcrypt11-dev
-      libglib2.0-dev
-      libgps-dev
-      libhiredis-dev
-      libi2c-dev
-      libldap2-dev
-      libltdl-dev
-      liblua50-dev
-      liblua5.1-0-dev
-      liblua5.2-dev
-      liblvm2-dev
-      libmemcached-dev
-      libmicrohttpd-dev
-      libmnl-dev
-      libmodbus-dev
-      libmosquitto0-dev
-      libmysqlclient-dev
-      libnotify-dev
-      libopenipmi-dev
-      liboping-dev
-      libow-dev
-      libpcap-dev
-      libperl-dev
-      libpq-dev
-      libprotobuf-c0-dev
-      librabbitmq-dev
-      librdkafka-dev
-      libriemann-client-dev
-      librrd-dev
-      libsensors4-dev
-      libsigrok-dev
-      libsnmp-dev
-      libstatgrab-dev
-      libtokyocabinet-dev
-      libtokyotyrant-dev
-      libudev-dev
-      libupsclient-dev
-      libvarnish-dev
-      libvirt-dev
-      libxen-dev
-      libxml2-dev
-      libyajl-dev
-      linux-libc-dev
-      perl
-      protobuf-c-compiler
-      python3-dev
-      python-dev
-      xfslibs-dev
-    ; fi
-
-  # libgcrypt, libpq & libxml2 are already installed & can't be listed again.
-  # ganglia has a file conflict with coreutils.
-  - if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
-    brew install
-      curl
-      libdbi
-      glib
-      hiredis
-      openldap
-      lua
-      libmemcached
-      libmicrohttpd
-      libmodbus
-      mosquitto
-      mysql-client
-      libnotify
-      liboping
-      libpcap
-      perl
-      protobuf-c
-      rabbitmq-c
-      librdkafka
-      riemann-client
-      rrdtool
-      net-snmp
-      libstatgrab
-      tokyo-cabinet
-      varnish
-      libvirt
-      yajl
-      protobuf
-      python
-    ; fi
 before_script: autoreconf -fi
 script:
   - if [[ "${TRAVIS_BRANCH}" == "coverity_scan" ]]; then exit 0; fi
@@ -120,6 +26,64 @@ script:
   - make check
 
 addons:
+  apt:
+    packages:
+    - autotools-dev
+    - iptables-dev
+    - libatasmart-dev
+    - libcap-dev
+    - libcurl4-gnutls-dev
+    - libdbi0-dev
+    - libesmtp-dev
+    - libganglia1-dev
+    - libgcrypt11-dev
+    - libglib2.0-dev
+    - libgps-dev
+    - libhiredis-dev
+    - libi2c-dev
+    - libldap2-dev
+    - libltdl-dev
+    - liblua50-dev
+    - liblua5.1-0-dev
+    - liblua5.2-dev
+    - liblvm2-dev
+    - libmemcached-dev
+    - libmicrohttpd-dev
+    - libmnl-dev
+    - libmodbus-dev
+    - libmosquitto0-dev
+    - libmysqlclient-dev
+    - libnotify-dev
+    - libopenipmi-dev
+    - liboping-dev
+    - libow-dev
+    - libpcap-dev
+    - libperl-dev
+    - libpq-dev
+    - libprotobuf-c0-dev
+    - librabbitmq-dev
+    - librdkafka-dev
+    - libriemann-client-dev
+    - librrd-dev
+    - libsensors4-dev
+    - libsigrok-dev
+    - libsnmp-dev
+    - libstatgrab-dev
+    - libtokyocabinet-dev
+    - libtokyotyrant-dev
+    - libudev-dev
+    - libupsclient-dev
+    - libvarnish-dev
+    - libvirt-dev
+    - libxen-dev
+    - libxml2-dev
+    - libyajl-dev
+    - linux-libc-dev
+    - perl
+    - protobuf-c-compiler
+    - python3-dev
+    - python-dev
+    - xfslibs-dev
   coverity_scan:
     project:
       name: "collectd/collectd"
@@ -128,3 +92,33 @@ addons:
     build_command_prepend: "./configure; make clean"
     build_command: "make -j $(nproc)"
     branch_pattern: coverity_scan
+  homebrew:
+    packages:
+    - curl
+    - glib
+    - hiredis
+    - libdbi
+    - libmemcached
+    - libmicrohttpd
+    - libmodbus
+    - libnotify
+    - liboping
+    - libpcap
+    - librdkafka
+    - libstatgrab
+    - libvirt
+    - lua
+    - mosquitto
+    - mysql-client
+    - net-snmp
+    - openldap
+    - perl
+    - protobuf
+    - protobuf-c
+    - python
+    - rabbitmq-c
+    - riemann-client
+    - rrdtool
+    - tokyo-cabinet
+    - varnish
+    - yajl