]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
travis: switch to Ubuntu 14.04 Trusty
authorRuediger Meier <ruediger.meier@ga-group.nl>
Sat, 12 Mar 2016 22:44:50 +0000 (23:44 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Sun, 13 Mar 2016 20:48:21 +0000 (21:48 +0100)
Now we have a reasonable recent build system with systemd, etc. We still
keep old Ubuntu 12.04 Precise to check backward compatibility but
remove the hack to install socat.

Note the new env variable PRECISE="yes" is only there to see it on travis
website.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
.travis-functions.sh
.travis.yml

index 3c1855951d1be551c682f70fb0a719c4d102dab2..e4318d6a60d7c80eaf77413f020f048689fcf7c4 100755 (executable)
@@ -71,6 +71,7 @@ function travis_install_script
        sudo apt-get -qq update || return
        sudo apt-get install -qq >/dev/null \
                bc \
+               btrfs-tools \
                dnsutils \
                libcap-ng-dev \
                libpam-dev \
@@ -78,14 +79,14 @@ function travis_install_script
                gtk-doc-tools \
                mdadm \
                ntp \
+               socat \
                || return
 
-       # install/upgrade custom stuff from non-official sources
-       sudo add-apt-repository -y ppa:malcscott/socat || return
-       sudo apt-get -qq update || return
+       # install only if available (e.g. Ubuntu Trusty)
        sudo apt-get install -qq >/dev/null \
-               socat \
-               || return
+               libsystemd-daemon-dev \
+               libsystemd-journal-dev \
+               || true
 }
 
 function travis_before_script
index e27adc4d7bf9296611c326c41a5873a133e8d7bd..545b915d74ecc0e196e53cc485cdf849215e30a2 100644 (file)
@@ -1,5 +1,8 @@
 language: c
 
+sudo: required
+dist: trusty
+
 git:
   depth: 1500
 
@@ -12,6 +15,13 @@ env:
   - MAKE_CHECK="root"
   - MAKE_CHECK="dist"
 
+matrix:
+  include:
+    - os: linux
+      dist: precise
+      compiler: gcc
+      env: PRECISE="yes" MAKE_CHECK="root"
+
 branches:
   only:
     - master