12 - XORG_RELEASES=http://xorg.freedesktop.org/releases/individual
13 - XCB_RELEASES=http://xcb.freedesktop.org/dist
14 - WAYLAND_RELEASES=http://wayland.freedesktop.org/releases
15 - XORGMACROS_VERSION=util-macros-1.19.0
16 - GLPROTO_VERSION=glproto-1.4.17
17 - DRI2PROTO_VERSION=dri2proto-2.8
18 - LIBPCIACCESS_VERSION=libpciaccess-0.13.4
19 - LIBDRM_VERSION=libdrm-2.4.74
20 - XCBPROTO_VERSION=xcb-proto-1.11
21 - LIBXCB_VERSION=libxcb-1.11
22 - LIBXSHMFENCE_VERSION=libxshmfence-1.2
23 - LIBVDPAU_VERSION=libvdpau-1.1
24 - LIBVA_VERSION=libva-1.6.2
25 - LIBWAYLAND_VERSION=wayland-1.11.1
26 - WAYLAND_PROTOCOLS_VERSION=wayland-protocols-1.8
27 - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
28 - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
29 - PATH="$HOME/prefix/bin:$PATH"
34 - LABEL="meson Vulkan"
36 - MESON_OPTIONS="-Ddri-drivers= -Dgallium-drivers="
40 - llvm-toolchain-trusty-4.0
42 # LLVM packaging is broken and misses these dependencies
52 - LABEL="meson loaders/classic DRI"
54 - MESON_OPTIONS="-Dvulkan-drivers= -Dgallium-drivers="
59 - x11proto-xf86vidmode-dev
66 - LABEL="make loaders/classic DRI"
69 - MAKE_CHECK_COMMAND="make check"
70 - DRI_LOADERS="--enable-glx --enable-gbm --enable-egl --with-platforms=x11,drm,surfaceless,wayland --enable-osmesa"
71 - DRI_DRIVERS="i915,i965,radeon,r200,swrast,nouveau"
72 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
75 - LIBUNWIND_FLAGS="--disable-libunwind"
80 - x11proto-xf86vidmode-dev
86 # NOTE: Building SWR is 2x (yes two) times slower than all the other
87 # gallium drivers combined.
88 # Start this early so that it doesn't hunder the run time.
89 - LABEL="make Gallium Drivers SWR"
92 - MAKE_CHECK_COMMAND="true"
94 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
95 - OVERRIDE_CC="gcc-4.8"
96 - OVERRIDE_CXX="g++-4.8"
97 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
99 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
100 - GALLIUM_DRIVERS="swr"
102 - LIBUNWIND_FLAGS="--enable-libunwind"
106 - llvm-toolchain-trusty-4.0
108 # LLVM packaging is broken and misses these dependencies
114 - x11proto-xf86vidmode-dev
120 - LABEL="make Gallium Drivers RadeonSI"
123 - MAKE_CHECK_COMMAND="true"
125 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
126 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
128 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
129 - GALLIUM_DRIVERS="radeonsi"
131 - LIBUNWIND_FLAGS="--enable-libunwind"
135 - llvm-toolchain-trusty-4.0
137 # LLVM packaging is broken and misses these dependencies
143 - x11proto-xf86vidmode-dev
149 - LABEL="make Gallium Drivers Other"
152 - MAKE_CHECK_COMMAND="true"
154 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
155 # New binutils linker is required for llvm-3.9
156 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
157 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
159 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
160 - GALLIUM_DRIVERS="i915,nouveau,pl111,r300,r600,freedreno,svga,swrast,vc4,virgl,etnaviv,imx"
162 - LIBUNWIND_FLAGS="--enable-libunwind"
166 - llvm-toolchain-trusty-3.9
169 # LLVM packaging is broken and misses these dependencies
175 - x11proto-xf86vidmode-dev
181 # NOTE: Analogous to SWR above, building Clover is quite slow.
182 - LABEL="make Gallium ST Clover LLVM-3.9"
185 - MAKE_CHECK_COMMAND="true"
187 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
188 - OVERRIDE_CC=gcc-4.7
189 - OVERRIDE_CXX=g++-4.7
190 # New binutils linker is required for llvm-3.9
191 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
192 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
194 - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
195 - GALLIUM_DRIVERS="r600"
197 - LIBUNWIND_FLAGS="--enable-libunwind"
201 - llvm-toolchain-trusty-3.9
205 # LLVM packaging is broken and misses these dependencies
214 - x11proto-xf86vidmode-dev
220 # NOTE: Analogous to SWR above, building Clover is quite slow.
221 - LABEL="make Gallium ST Clover LLVM-4.0"
224 - MAKE_CHECK_COMMAND="true"
226 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
227 - OVERRIDE_CC=gcc-4.8
228 - OVERRIDE_CXX=g++-4.8
229 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
231 - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
232 - GALLIUM_DRIVERS="r600,radeonsi"
234 - LIBUNWIND_FLAGS="--enable-libunwind"
238 - llvm-toolchain-trusty-4.0
241 # LLVM packaging is broken and misses these dependencies
250 - x11proto-xf86vidmode-dev
256 # NOTE: Analogous to SWR above, building Clover is quite slow.
257 - LABEL="make Gallium ST Clover LLVM-5.0"
260 - MAKE_CHECK_COMMAND="true"
262 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
263 - OVERRIDE_CC=gcc-4.8
264 - OVERRIDE_CXX=g++-4.8
265 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
267 - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
268 - GALLIUM_DRIVERS="r600,radeonsi"
270 - LIBUNWIND_FLAGS="--enable-libunwind"
274 - llvm-toolchain-trusty-5.0
277 # LLVM packaging is broken and misses these dependencies
286 - x11proto-xf86vidmode-dev
292 - LABEL="make Gallium ST Other"
295 - MAKE_CHECK_COMMAND="true"
297 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
298 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
300 - GALLIUM_ST="--enable-dri --disable-opencl --enable-xa --enable-nine --enable-xvmc --enable-vdpau --enable-va --enable-omx-bellagio --enable-gallium-osmesa"
301 # We need swrast for osmesa and nine.
302 # i915 most likely doesn't work with most ST.
303 # Regardless - we're doing a quick build test here.
304 - GALLIUM_DRIVERS="i915,swrast"
306 - LIBUNWIND_FLAGS="--enable-libunwind"
310 # We actually want to test against llvm-3.3
312 # Nine requires gcc 4.6... which is the one we have right ?
314 # Build locally, for now.
317 - libomxil-bellagio-dev
318 # LLVM packaging is broken and misses these dependencies
322 - x11proto-xf86vidmode-dev
328 - LABEL="make Vulkan"
331 - MAKE_CHECK_COMMAND="make -C src/gtest check && make -C src/intel check"
333 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
334 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland"
336 - GALLIUM_ST="--enable-dri --enable-dri3 --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
338 - VULKAN_DRIVERS="intel,radeon"
339 - LIBUNWIND_FLAGS="--disable-libunwind"
343 - llvm-toolchain-trusty-4.0
345 # LLVM packaging is broken and misses these dependencies
351 - x11proto-xf86vidmode-dev
359 # Explicitly disable.
360 - SCONS_TARGET="llvm=0"
361 # Keep it symmetrical to the make build.
362 - SCONS_CHECK_COMMAND="scons llvm=0 check"
369 - x11proto-xf86vidmode-dev
377 - SCONS_TARGET="llvm=1"
378 # Keep it symmetrical to the make build.
379 - SCONS_CHECK_COMMAND="scons llvm=1 check"
381 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
386 # LLVM packaging is broken and misses these dependencies
391 - x11proto-xf86vidmode-dev
399 - SCONS_TARGET="swr=1"
401 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
402 # Keep it symmetrical to the make build. There's no actual SWR, yet.
403 - SCONS_CHECK_COMMAND="true"
404 - OVERRIDE_CC="gcc-4.8"
405 - OVERRIDE_CXX="g++-4.8"
409 - llvm-toolchain-trusty-4.0
412 # LLVM packaging is broken and misses these dependencies
418 - x11proto-xf86vidmode-dev
426 - MAKE_CHECK_COMMAND="make check"
427 - DRI_LOADERS="--with-platforms=x11 --disable-egl"
430 - LABEL="macOS meson"
432 - MESON_OPTIONS="-Degl=false"
437 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
438 HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext
439 # Set PATH for homebrew pip3 installs
440 PATH="$HOME/Library/Python/3.6/bin:${PATH}"
441 # Set PKG_CONFIG_PATH for keg-only expat
442 PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}"
443 # Set PATH for keg-only gettext
444 PATH="/usr/local/opt/gettext/bin:${PATH}"
446 # Install xquartz for prereqs ...
447 XQUARTZ_VERSION="2.7.11"
448 wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg
449 hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg
450 sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target /
451 hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION}
453 PATH="/opt/X11/bin:${PATH}"
454 PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
455 ACLOCAL="aclocal -I /opt/X11/share/aclocal -I /usr/local/share/aclocal"
459 - pip2 install --user mako
461 # Install the latest meson from pip, since the version in the ubuntu repos is
463 - if test "x$BUILD" = xmeson; then
464 pip3 install --user meson;
467 # Since libdrm gets updated in configure.ac regularly, try to pick up the
468 # latest version from there.
469 - for line in `grep "^LIBDRM.*_REQUIRED=" configure.ac`; do
470 old_ver=`echo $LIBDRM_VERSION | sed 's/libdrm-//'`;
471 new_ver=`echo $line | sed 's/.*REQUIRED=//'`;
472 if `echo "$old_ver,$new_ver" | tr ',' '\n' | sort -Vc 2> /dev/null`; then
473 export LIBDRM_VERSION="libdrm-$new_ver";
477 # Install dependencies where we require specific versions (or where
478 # disallowed by Travis CI's package whitelisting).
481 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
482 wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
483 tar -jxvf $XORGMACROS_VERSION.tar.bz2
484 (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install)
486 wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2
487 tar -jxvf $GLPROTO_VERSION.tar.bz2
488 (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
490 wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2
491 tar -jxvf $DRI2PROTO_VERSION.tar.bz2
492 (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
494 wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2
495 tar -jxvf $XCBPROTO_VERSION.tar.bz2
496 (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
498 wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2
499 tar -jxvf $LIBXCB_VERSION.tar.bz2
500 (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install)
502 wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2
503 tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2
504 (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
506 wget http://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
507 tar -jxvf $LIBDRM_VERSION.tar.bz2
508 (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix --enable-vc4 --enable-freedreno --enable-etnaviv-experimental-api && make install)
510 wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2
511 tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2
512 (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install)
514 wget http://people.freedesktop.org/~aplattner/vdpau/$LIBVDPAU_VERSION.tar.bz2
515 tar -jxvf $LIBVDPAU_VERSION.tar.bz2
516 (cd $LIBVDPAU_VERSION && ./configure --prefix=$HOME/prefix && make install)
518 wget http://www.freedesktop.org/software/vaapi/releases/libva/$LIBVA_VERSION.tar.bz2
519 tar -jxvf $LIBVA_VERSION.tar.bz2
520 (cd $LIBVA_VERSION && ./configure --prefix=$HOME/prefix --disable-wayland --disable-dummy-driver && make install)
522 wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz
523 tar -axvf $LIBWAYLAND_VERSION.tar.xz
524 (cd $LIBWAYLAND_VERSION && ./configure --prefix=$HOME/prefix --enable-libraries --without-host-scanner --disable-documentation --disable-dtd-validation && make install)
526 wget $WAYLAND_RELEASES/$WAYLAND_PROTOCOLS_VERSION.tar.xz
527 tar -axvf $WAYLAND_PROTOCOLS_VERSION.tar.xz
528 (cd $WAYLAND_PROTOCOLS_VERSION && ./configure --prefix=$HOME/prefix && make install)
530 # Meson requires ninja >= 1.6, but trusty has 1.3.x
531 wget https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-linux.zip
532 unzip ninja-linux.zip
533 mv ninja $HOME/prefix/bin/
535 # Generate this header since one is missing on the Travis instance
538 "#ifndef _LINUX_MEMFD_H" \
539 "#define _LINUX_MEMFD_H" \
541 "#define __NR_memfd_create 319" \
542 "#define SYS_memfd_create __NR_memfd_create" \
544 "#define MFD_CLOEXEC 0x0001U" \
545 "#define MFD_ALLOW_SEALING 0x0002U" \
547 "#endif /* _LINUX_MEMFD_H */" > linux/memfd.h
551 - if test "x$BUILD" = xmake; then
552 test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
553 test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
554 test -n "$OVERRIDE_PATH" && export PATH="$OVERRIDE_PATH:$PATH";
556 export CFLAGS="$CFLAGS -isystem`pwd`";
558 ./autogen.sh --enable-debug
561 --with-dri-drivers=$DRI_DRIVERS
563 --with-gallium-drivers=$GALLIUM_DRIVERS
564 --with-vulkan-drivers=$VULKAN_DRIVERS
565 --disable-llvm-shared-libs
567 make && eval $MAKE_CHECK_COMMAND;
570 - if test "x$BUILD" = xscons; then
571 test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
572 test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
573 scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND;
576 - if test "x$BUILD" = xmeson; then
577 export CFLAGS="$CFLAGS -isystem`pwd`";
578 meson _build $MESON_OPTIONS;