summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index da1d81e1b46..843a9bcdc2e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -41,6 +41,16 @@ install:
- export PATH="/usr/lib/ccache:$PATH"
- pip install --user mako
+ # Since libdrm gets updated in configure.ac regularly, try to pick up the
+ # latest version from there.
+ - for line in `grep "^LIBDRM_.*_REQUIRED=" configure.ac`; do
+ old_ver=`echo $LIBDRM_VERSION | sed 's/libdrm-//'`;
+ new_ver=`echo $line | sed 's/.*REQUIRED=//'`;
+ if `echo "$old_ver,$new_ver" | tr ',' '\n' | sort -Vc 2> /dev/null`; then
+ export LIBDRM_VERSION="libdrm-$new_ver";
+ fi;
+ done
+
# Install dependencies where we require specific versions (or where
# disallowed by Travis CI's package whitelisting).