mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
travis: Parse configure.ac to pick an updated LIBDRM_VERSION.
Travis has been broken a couple of times by configure.ac updates. To make it useful, auto-update the version necessary. This could potentially be used for other dependencies, too, but those get bumped less frequently. Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Rhys Kidd <rhyskidd@gmail.com>
This commit is contained in:
parent
91987c51e3
commit
ecbc76cf6e
1 changed files with 10 additions and 0 deletions
10
.travis.yml
10
.travis.yml
|
|
@ -41,6 +41,16 @@ install:
|
||||||
- export PATH="/usr/lib/ccache:$PATH"
|
- export PATH="/usr/lib/ccache:$PATH"
|
||||||
- pip install --user mako
|
- 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
|
# Install dependencies where we require specific versions (or where
|
||||||
# disallowed by Travis CI's package whitelisting).
|
# disallowed by Travis CI's package whitelisting).
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue