blob: 0f42b96cb2043b6bb9fbc00d11f5e8d3993915fd [file] [log] [blame]
Eric Anholt1c0ac192015-11-23 16:25:29 -08001language: c
2
Andres Gomez7819d262017-04-05 20:27:30 +03003sudo: false
Eric Anholt80a872f2016-08-18 13:12:18 -07004dist: trusty
Eric Anholt1c0ac192015-11-23 16:25:29 -08005
6cache:
Emil Velikov486f28b2017-04-06 16:36:59 +01007 apt: true
Emil Velikov6431b982017-04-06 14:02:38 +01008 ccache: true
Eric Anholt1c0ac192015-11-23 16:25:29 -08009
Eric Anholt1c0ac192015-11-23 16:25:29 -080010env:
11 global:
12 - XORG_RELEASES=http://xorg.freedesktop.org/releases/individual
13 - XCB_RELEASES=http://xcb.freedesktop.org/dist
Andres Gomez9375c1d2017-07-19 19:14:03 +030014 - WAYLAND_RELEASES=http://wayland.freedesktop.org/releases
Eric Anholt1c0ac192015-11-23 16:25:29 -080015 - XORGMACROS_VERSION=util-macros-1.19.0
16 - GLPROTO_VERSION=glproto-1.4.17
17 - DRI2PROTO_VERSION=dri2proto-2.8
Eric Anholt1c0ac192015-11-23 16:25:29 -080018 - LIBPCIACCESS_VERSION=libpciaccess-0.13.4
Rhys Kiddcba80862017-01-12 23:06:34 -050019 - LIBDRM_VERSION=libdrm-2.4.74
Eric Anholt1c0ac192015-11-23 16:25:29 -080020 - XCBPROTO_VERSION=xcb-proto-1.11
21 - LIBXCB_VERSION=libxcb-1.11
22 - LIBXSHMFENCE_VERSION=libxshmfence-1.2
Emil Velikov0e6a36c2017-04-07 14:06:25 +010023 - LIBVDPAU_VERSION=libvdpau-1.1
24 - LIBVA_VERSION=libva-1.6.2
Emil Velikov27a0b382017-04-18 13:57:31 +010025 - LIBWAYLAND_VERSION=wayland-1.11.1
Andres Gomez9375c1d2017-07-19 19:14:03 +030026 - WAYLAND_PROTOCOLS_VERSION=wayland-protocols-1.8
27 - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
Emil Velikovcb820da2017-04-06 13:32:36 +010028 - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
Dylan Bakerdf820122017-09-27 10:37:28 -070029 - PATH="$HOME/prefix/bin:$PATH"
Emil Velikov56ba2522017-04-06 14:38:40 +010030
31matrix:
32 include:
33 - env:
Emil Velikov7e2af372017-04-07 12:13:56 +010034 - LABEL="make loaders/classic DRI"
Emil Velikov56ba2522017-04-06 14:38:40 +010035 - BUILD=make
Emil Velikovb1d45c32017-04-27 17:09:12 +010036 - MAKEFLAGS="-j4"
Emil Velikov7e2af372017-04-07 12:13:56 +010037 - MAKE_CHECK_COMMAND="make check"
Emil Velikov27a0b382017-04-18 13:57:31 +010038 - DRI_LOADERS="--enable-glx --enable-gbm --enable-egl --with-platforms=x11,drm,surfaceless,wayland --enable-osmesa"
Emil Velikov7e2af372017-04-07 12:13:56 +010039 - DRI_DRIVERS="i915,i965,radeon,r200,swrast,nouveau"
Andres Gomez7e8f03b2017-09-16 20:23:56 +030040 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
Emil Velikov7e2af372017-04-07 12:13:56 +010041 - GALLIUM_DRIVERS=""
42 - VULKAN_DRIVERS=""
Gert Wollny39fe51c2017-09-14 12:27:42 +020043 - LIBUNWIND_FLAGS="--disable-libunwind"
Emil Velikov7e2af372017-04-07 12:13:56 +010044 addons:
45 apt:
46 packages:
Emil Velikov27a0b382017-04-18 13:57:31 +010047 - xz-utils
Emil Velikov7e2af372017-04-07 12:13:56 +010048 - x11proto-xf86vidmode-dev
49 - libexpat1-dev
50 - libx11-xcb-dev
Eric Engestrom3c7c82c2017-06-22 19:14:20 +010051 - libxdamage-dev
52 - libxfixes-dev
Emil Velikov7e2af372017-04-07 12:13:56 +010053 - env:
54 # NOTE: Building SWR is 2x (yes two) times slower than all the other
55 # gallium drivers combined.
56 # Start this early so that it doesn't hunder the run time.
57 - LABEL="make Gallium Drivers SWR"
58 - BUILD=make
Emil Velikovb1d45c32017-04-27 17:09:12 +010059 - MAKEFLAGS="-j4"
Emil Velikov7e2af372017-04-07 12:13:56 +010060 - MAKE_CHECK_COMMAND="true"
Emil Velikov85ee2c62017-04-06 14:41:44 +010061 - LLVM_VERSION=3.9
62 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
Emil Velikov45927412017-07-04 16:53:40 +010063 - OVERRIDE_CC="gcc-4.8"
64 - OVERRIDE_CXX="g++-4.8"
Emil Velikova7ecf7b2017-10-05 11:19:06 +010065 # New binutils linker is required for llvm-3.9
66 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
Emil Velikov7e2af372017-04-07 12:13:56 +010067 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
68 - DRI_DRIVERS=""
Andres Gomez7e8f03b2017-09-16 20:23:56 +030069 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
Emil Velikov7e2af372017-04-07 12:13:56 +010070 - GALLIUM_DRIVERS="swr"
71 - VULKAN_DRIVERS=""
Gert Wollny39fe51c2017-09-14 12:27:42 +020072 - LIBUNWIND_FLAGS="--enable-libunwind"
Emil Velikov7e2af372017-04-07 12:13:56 +010073 addons:
74 apt:
75 sources:
Emil Velikov7e2af372017-04-07 12:13:56 +010076 - llvm-toolchain-trusty-3.9
77 packages:
Emil Velikova7ecf7b2017-10-05 11:19:06 +010078 - binutils-2.26
Emil Velikov7e2af372017-04-07 12:13:56 +010079 # LLVM packaging is broken and misses these dependencies
80 - libedit-dev
81 # From sources above
Emil Velikov7e2af372017-04-07 12:13:56 +010082 - llvm-3.9-dev
83 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +010084 - xz-utils
Emil Velikov7e2af372017-04-07 12:13:56 +010085 - x11proto-xf86vidmode-dev
86 - libexpat1-dev
87 - libx11-xcb-dev
88 - libelf-dev
Gert Wollny39fe51c2017-09-14 12:27:42 +020089 - libunwind8-dev
Emil Velikov7e2af372017-04-07 12:13:56 +010090 - env:
91 - LABEL="make Gallium Drivers Other"
92 - BUILD=make
Emil Velikovb1d45c32017-04-27 17:09:12 +010093 - MAKEFLAGS="-j4"
Emil Velikov7e2af372017-04-07 12:13:56 +010094 - MAKE_CHECK_COMMAND="true"
95 - LLVM_VERSION=3.9
96 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
Emil Velikova7ecf7b2017-10-05 11:19:06 +010097 # New binutils linker is required for llvm-3.9
98 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
Emil Velikov7e2af372017-04-07 12:13:56 +010099 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
100 - DRI_DRIVERS=""
Andres Gomez7e8f03b2017-09-16 20:23:56 +0300101 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
Eric Anholt7029ec02017-05-08 15:57:21 -0700102 - GALLIUM_DRIVERS="i915,nouveau,pl111,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl,etnaviv,imx"
Emil Velikov7e2af372017-04-07 12:13:56 +0100103 - VULKAN_DRIVERS=""
Gert Wollny39fe51c2017-09-14 12:27:42 +0200104 - LIBUNWIND_FLAGS="--enable-libunwind"
Emil Velikov85ee2c62017-04-06 14:41:44 +0100105 addons:
106 apt:
107 sources:
108 - llvm-toolchain-trusty-3.9
109 packages:
Emil Velikova7ecf7b2017-10-05 11:19:06 +0100110 - binutils-2.26
Emil Velikov85ee2c62017-04-06 14:41:44 +0100111 # LLVM packaging is broken and misses these dependencies
112 - libedit-dev
113 # From sources above
114 - llvm-3.9-dev
115 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +0100116 - xz-utils
Emil Velikov85ee2c62017-04-06 14:41:44 +0100117 - x11proto-xf86vidmode-dev
118 - libexpat1-dev
119 - libx11-xcb-dev
120 - libelf-dev
Gert Wollny39fe51c2017-09-14 12:27:42 +0200121 - libunwind8-dev
Emil Velikov85ee2c62017-04-06 14:41:44 +0100122 - env:
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100123 # NOTE: Analogous to SWR above, building Clover is quite slow.
Jan Veselyb9a358a2017-09-16 18:52:52 -0400124 - LABEL="make Gallium ST Clover LLVM-3.9"
125 - BUILD=make
126 - MAKEFLAGS="-j4"
127 - MAKE_CHECK_COMMAND="true"
128 - LLVM_VERSION=3.9
129 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
130 - OVERRIDE_CC=gcc-4.7
131 - OVERRIDE_CXX=g++-4.7
132 # New binutils linker is required for llvm-3.9
133 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
134 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
135 - DRI_DRIVERS=""
136 - 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"
137 - GALLIUM_DRIVERS="r600,radeonsi"
138 - VULKAN_DRIVERS=""
139 - LIBUNWIND_FLAGS="--enable-libunwind"
140 addons:
141 apt:
142 sources:
143 - llvm-toolchain-trusty-3.9
144 packages:
145 - binutils-2.26
146 - libclc-dev
147 # LLVM packaging is broken and misses these dependencies
148 - libedit-dev
149 - g++-4.7
150 # From sources above
151 - llvm-3.9-dev
152 - clang-3.9
153 - libclang-3.9-dev
154 # Common
155 - xz-utils
156 - x11proto-xf86vidmode-dev
157 - libexpat1-dev
158 - libx11-xcb-dev
159 - libelf-dev
160 - libunwind8-dev
161 - env:
Jan Vesely8af90b52017-09-16 18:54:24 -0400162 # NOTE: Analogous to SWR above, building Clover is quite slow.
163 - LABEL="make Gallium ST Clover LLVM-4.0"
164 - BUILD=make
165 - MAKEFLAGS="-j4"
166 - MAKE_CHECK_COMMAND="true"
167 - LLVM_VERSION=4.0
168 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
169 - OVERRIDE_CC=gcc-4.8
170 - OVERRIDE_CXX=g++-4.8
171 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
172 - DRI_DRIVERS=""
173 - 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"
174 - GALLIUM_DRIVERS="r600,radeonsi"
175 - VULKAN_DRIVERS=""
176 - LIBUNWIND_FLAGS="--enable-libunwind"
177 addons:
178 apt:
179 sources:
180 - llvm-toolchain-trusty-4.0
181 packages:
182 - libclc-dev
183 # LLVM packaging is broken and misses these dependencies
184 - libedit-dev
185 - g++-4.8
186 # From sources above
187 - llvm-4.0-dev
188 - clang-4.0
189 - libclang-4.0-dev
190 # Common
191 - xz-utils
192 - x11proto-xf86vidmode-dev
193 - libexpat1-dev
194 - libx11-xcb-dev
195 - libelf-dev
196 - libunwind8-dev
197 - env:
Jan Vesely71487952017-09-16 18:55:48 -0400198 # NOTE: Analogous to SWR above, building Clover is quite slow.
199 - LABEL="make Gallium ST Clover LLVM-5.0"
200 - BUILD=make
201 - MAKEFLAGS="-j4"
202 - MAKE_CHECK_COMMAND="true"
203 - LLVM_VERSION=5.0
204 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
205 - OVERRIDE_CC=gcc-4.8
206 - OVERRIDE_CXX=g++-4.8
207 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
208 - DRI_DRIVERS=""
209 - 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"
210 - GALLIUM_DRIVERS="r600,radeonsi"
211 - VULKAN_DRIVERS=""
212 - LIBUNWIND_FLAGS="--enable-libunwind"
213 addons:
214 apt:
215 sources:
216 - llvm-toolchain-trusty-5.0
217 packages:
218 - libclc-dev
219 # LLVM packaging is broken and misses these dependencies
220 - libedit-dev
221 - g++-4.8
222 # From sources above
223 - llvm-5.0-dev
224 - clang-5.0
225 - libclang-5.0-dev
226 # Common
227 - xz-utils
228 - x11proto-xf86vidmode-dev
229 - libexpat1-dev
230 - libx11-xcb-dev
231 - libelf-dev
232 - libunwind8-dev
233 - env:
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100234 - LABEL="make Gallium ST Other"
235 - BUILD=make
Emil Velikovb1d45c32017-04-27 17:09:12 +0100236 - MAKEFLAGS="-j4"
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100237 - MAKE_CHECK_COMMAND="true"
Gert Wollnyd3675812017-09-14 12:27:41 +0200238 - LLVM_VERSION=3.3
239 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100240 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
241 - DRI_DRIVERS=""
Andres Gomez7e8f03b2017-09-16 20:23:56 +0300242 - GALLIUM_ST="--enable-dri --disable-opencl --enable-xa --enable-nine --enable-xvmc --enable-vdpau --enable-va --enable-omx-bellagio --enable-gallium-osmesa"
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100243 # We need swrast for osmesa and nine.
244 # i915 most likely doesn't work with most ST.
245 # Regardless - we're doing a quick build test here.
246 - GALLIUM_DRIVERS="i915,swrast"
247 - VULKAN_DRIVERS=""
Gert Wollny39fe51c2017-09-14 12:27:42 +0200248 - LIBUNWIND_FLAGS="--enable-libunwind"
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100249 addons:
250 apt:
251 packages:
Gert Wollnyd3675812017-09-14 12:27:41 +0200252 # We actually want to test against llvm-3.3
253 - llvm-3.3-dev
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100254 # Nine requires gcc 4.6... which is the one we have right ?
255 - libxvmc-dev
256 # Build locally, for now.
257 #- libvdpau-dev
258 #- libva-dev
259 - libomxil-bellagio-dev
260 # LLVM packaging is broken and misses these dependencies
261 - libedit-dev
262 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +0100263 - xz-utils
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100264 - x11proto-xf86vidmode-dev
265 - libexpat1-dev
266 - libx11-xcb-dev
267 - libelf-dev
Gert Wollny39fe51c2017-09-14 12:27:42 +0200268 - libunwind8-dev
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100269 - env:
Emil Velikov7e2af372017-04-07 12:13:56 +0100270 - LABEL="make Vulkan"
Emil Velikov8479fd82017-04-06 18:01:19 +0100271 - BUILD=make
Emil Velikovb1d45c32017-04-27 17:09:12 +0100272 - MAKEFLAGS="-j4"
Emil Velikov7e2af372017-04-07 12:13:56 +0100273 - MAKE_CHECK_COMMAND="make -C src/gtest check && make -C src/intel check"
Emil Velikov8479fd82017-04-06 18:01:19 +0100274 - LLVM_VERSION=3.9
275 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
Emil Velikova7ecf7b2017-10-05 11:19:06 +0100276 # New binutils linker is required for llvm-3.9
277 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
Emil Velikov552cd5c2017-05-04 11:05:27 +0100278 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland"
Emil Velikov8479fd82017-04-06 18:01:19 +0100279 - DRI_DRIVERS=""
Andres Gomez7e8f03b2017-09-16 20:23:56 +0300280 - GALLIUM_ST="--enable-dri --enable-dri3 --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
Emil Velikov7e2af372017-04-07 12:13:56 +0100281 - GALLIUM_DRIVERS=""
282 - VULKAN_DRIVERS="intel,radeon"
Gert Wollny39fe51c2017-09-14 12:27:42 +0200283 - LIBUNWIND_FLAGS="--disable-libunwind"
Emil Velikov8479fd82017-04-06 18:01:19 +0100284 addons:
285 apt:
286 sources:
Emil Velikov8479fd82017-04-06 18:01:19 +0100287 - llvm-toolchain-trusty-3.9
288 packages:
Emil Velikova7ecf7b2017-10-05 11:19:06 +0100289 - binutils-2.26
Emil Velikov8479fd82017-04-06 18:01:19 +0100290 # LLVM packaging is broken and misses these dependencies
291 - libedit-dev
292 # From sources above
Emil Velikov8479fd82017-04-06 18:01:19 +0100293 - llvm-3.9-dev
294 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +0100295 - xz-utils
Emil Velikov8479fd82017-04-06 18:01:19 +0100296 - x11proto-xf86vidmode-dev
297 - libexpat1-dev
298 - libx11-xcb-dev
299 - libelf-dev
300 - env:
Emil Velikov85ee2c62017-04-06 14:41:44 +0100301 - LABEL="scons"
302 - BUILD=scons
303 - SCONSFLAGS="-j4"
304 # Explicitly disable.
305 - SCONS_TARGET="llvm=0"
Emil Velikovb3f20762017-04-28 19:01:33 +0100306 # Keep it symmetrical to the make build.
307 - SCONS_CHECK_COMMAND="scons llvm=0 check"
Emil Velikov85ee2c62017-04-06 14:41:44 +0100308 addons:
309 apt:
310 packages:
311 - scons
312 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +0100313 - xz-utils
Emil Velikov85ee2c62017-04-06 14:41:44 +0100314 - x11proto-xf86vidmode-dev
315 - libexpat1-dev
316 - libx11-xcb-dev
317 - libelf-dev
Emil Velikov56ba2522017-04-06 14:38:40 +0100318 - env:
319 - LABEL="scons LLVM"
320 - BUILD=scons
321 - SCONSFLAGS="-j4"
322 - SCONS_TARGET="llvm=1"
Emil Velikovb3f20762017-04-28 19:01:33 +0100323 # Keep it symmetrical to the make build.
324 - SCONS_CHECK_COMMAND="scons llvm=1 check"
Emil Velikov85ee2c62017-04-06 14:41:44 +0100325 - LLVM_VERSION=3.3
326 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
327 addons:
328 apt:
329 packages:
330 - scons
331 # LLVM packaging is broken and misses these dependencies
332 - libedit-dev
333 - llvm-3.3-dev
334 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +0100335 - xz-utils
Emil Velikov85ee2c62017-04-06 14:41:44 +0100336 - x11proto-xf86vidmode-dev
337 - libexpat1-dev
338 - libx11-xcb-dev
339 - libelf-dev
Emil Velikovf55d98a2017-04-06 16:23:21 +0100340 - env:
341 - LABEL="scons SWR"
342 - BUILD=scons
343 - SCONSFLAGS="-j4"
344 - SCONS_TARGET="swr=1"
345 - LLVM_VERSION=3.9
346 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
Emil Velikovb3f20762017-04-28 19:01:33 +0100347 # Keep it symmetrical to the make build. There's no actual SWR, yet.
348 - SCONS_CHECK_COMMAND="true"
Emil Velikov45927412017-07-04 16:53:40 +0100349 - OVERRIDE_CC="gcc-4.8"
350 - OVERRIDE_CXX="g++-4.8"
Emil Velikovf55d98a2017-04-06 16:23:21 +0100351 addons:
352 apt:
353 sources:
Emil Velikovf55d98a2017-04-06 16:23:21 +0100354 - llvm-toolchain-trusty-3.9
355 packages:
356 - scons
357 # LLVM packaging is broken and misses these dependencies
358 - libedit-dev
359 # From sources above
Emil Velikovf55d98a2017-04-06 16:23:21 +0100360 - llvm-3.9-dev
361 # Common
Emil Velikov27a0b382017-04-18 13:57:31 +0100362 - xz-utils
Emil Velikovf55d98a2017-04-06 16:23:21 +0100363 - x11proto-xf86vidmode-dev
364 - libexpat1-dev
365 - libx11-xcb-dev
366 - libelf-dev
Dylan Bakerdf820122017-09-27 10:37:28 -0700367 - env:
368 - LABEL="meson Vulkan"
369 - BUILD=meson
Dylan Bakerc7081a32017-10-11 10:50:33 -0700370 - MESON_OPTIONS="-Ddri-drivers= -Dgallium-drivers="
Dylan Bakerdf820122017-09-27 10:37:28 -0700371 addons:
372 apt:
373 sources:
374 - llvm-toolchain-trusty-3.9
375 packages:
376 # LLVM packaging is broken and misses these dependencies
377 - libedit-dev
378 # From sources above
379 - llvm-3.9-dev
380 # Common
381 - xz-utils
382 - libexpat1-dev
383 - libelf-dev
384 - python3-pip
Dylan Bakerc63ce5c2017-10-03 17:36:17 -0700385 - env:
386 - LABEL="meson loaders/classic DRI"
387 - BUILD=meson
Dylan Bakerc7081a32017-10-11 10:50:33 -0700388 - MESON_OPTIONS="-Dvulkan-drivers= -Dgallium-drivers="
Dylan Bakerc63ce5c2017-10-03 17:36:17 -0700389 addons:
390 apt:
391 packages:
392 - xz-utils
393 - x11proto-xf86vidmode-dev
394 - libexpat1-dev
395 - libx11-xcb-dev
396 - libxdamage-dev
397 - libxfixes-dev
398 - python3-pip
Eric Anholt1c0ac192015-11-23 16:25:29 -0800399
400install:
Eric Anholt1c0ac192015-11-23 16:25:29 -0800401 - pip install --user mako
402
Dylan Bakerdf820122017-09-27 10:37:28 -0700403 # Install the latest meson from pip, since the version in the ubuntu repos is
404 # often quite old.
405 - if test "x$BUILD" = xmeson; then
406 pip3 install --user meson;
407 fi
408
Eric Anholtecbc76c2016-08-18 12:29:31 -0700409 # Since libdrm gets updated in configure.ac regularly, try to pick up the
410 # latest version from there.
Emil Velikov96d86b12017-02-01 22:30:25 +0000411 - for line in `grep "^LIBDRM.*_REQUIRED=" configure.ac`; do
Eric Anholtecbc76c2016-08-18 12:29:31 -0700412 old_ver=`echo $LIBDRM_VERSION | sed 's/libdrm-//'`;
413 new_ver=`echo $line | sed 's/.*REQUIRED=//'`;
414 if `echo "$old_ver,$new_ver" | tr ',' '\n' | sort -Vc 2> /dev/null`; then
415 export LIBDRM_VERSION="libdrm-$new_ver";
416 fi;
417 done
418
Eric Anholt1c0ac192015-11-23 16:25:29 -0800419 # Install dependencies where we require specific versions (or where
420 # disallowed by Travis CI's package whitelisting).
421
422 - wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
423 - tar -jxvf $XORGMACROS_VERSION.tar.bz2
424 - (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install)
425
426 - wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2
427 - tar -jxvf $GLPROTO_VERSION.tar.bz2
428 - (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
429
430 - wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2
431 - tar -jxvf $DRI2PROTO_VERSION.tar.bz2
432 - (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
433
Eric Anholt1c0ac192015-11-23 16:25:29 -0800434 - wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2
435 - tar -jxvf $XCBPROTO_VERSION.tar.bz2
436 - (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
437
438 - wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2
439 - tar -jxvf $LIBXCB_VERSION.tar.bz2
440 - (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install)
441
442 - wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2
443 - tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2
444 - (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
445
446 - wget http://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
447 - tar -jxvf $LIBDRM_VERSION.tar.bz2
Emil Velikov30267172017-02-01 22:30:26 +0000448 - (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix --enable-vc4 --enable-freedreno --enable-etnaviv-experimental-api && make install)
Eric Anholt1c0ac192015-11-23 16:25:29 -0800449
450 - wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2
451 - tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2
452 - (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install)
453
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100454 - wget http://people.freedesktop.org/~aplattner/vdpau/$LIBVDPAU_VERSION.tar.bz2
455 - tar -jxvf $LIBVDPAU_VERSION.tar.bz2
456 - (cd $LIBVDPAU_VERSION && ./configure --prefix=$HOME/prefix && make install)
457
458 - wget http://www.freedesktop.org/software/vaapi/releases/libva/$LIBVA_VERSION.tar.bz2
459 - tar -jxvf $LIBVA_VERSION.tar.bz2
460 - (cd $LIBVA_VERSION && ./configure --prefix=$HOME/prefix --disable-wayland --disable-dummy-driver && make install)
461
Andres Gomez9375c1d2017-07-19 19:14:03 +0300462 - wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz
Emil Velikov27a0b382017-04-18 13:57:31 +0100463 - tar -axvf $LIBWAYLAND_VERSION.tar.xz
464 - (cd $LIBWAYLAND_VERSION && ./configure --prefix=$HOME/prefix --enable-libraries --without-host-scanner --disable-documentation --disable-dtd-validation && make install)
465
Andres Gomez9375c1d2017-07-19 19:14:03 +0300466 - wget $WAYLAND_RELEASES/$WAYLAND_PROTOCOLS_VERSION.tar.xz
467 - tar -axvf $WAYLAND_PROTOCOLS_VERSION.tar.xz
468 - (cd $WAYLAND_PROTOCOLS_VERSION && ./configure --prefix=$HOME/prefix && make install)
469
Dylan Bakerdf820122017-09-27 10:37:28 -0700470 # Meson requires ninja >= 1.6, but trusty has 1.3.x
471 - wget https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-linux.zip;
472 - unzip ninja-linux.zip
473 - mv ninja $HOME/prefix/bin/
474
Emil Velikov7e2af372017-04-07 12:13:56 +0100475 # Generate the header since one is missing on the Travis instance
476 - mkdir -p linux
477 - printf "%s\n" \
478 "#ifndef _LINUX_MEMFD_H" \
479 "#define _LINUX_MEMFD_H" \
480 "" \
481 "#define __NR_memfd_create 319" \
482 "#define SYS_memfd_create __NR_memfd_create" \
483 "" \
484 "#define MFD_CLOEXEC 0x0001U" \
485 "#define MFD_ALLOW_SEALING 0x0002U" \
486 "" \
487 "#endif /* _LINUX_MEMFD_H */" > linux/memfd.h
488
Eric Anholt1c0ac192015-11-23 16:25:29 -0800489script:
Eric Anholt18f8da72015-12-01 11:57:49 -0800490 - if test "x$BUILD" = xmake; then
Emil Velikov8479fd82017-04-06 18:01:19 +0100491 test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
492 test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
Jan Veselyb9a358a2017-09-16 18:52:52 -0400493 test -n "$OVERRIDE_PATH" && export PATH="$OVERRIDE_PATH:$PATH";
494
Eric Engestromd246aa32017-10-04 13:54:14 +0100495 export CFLAGS="$CFLAGS -isystem`pwd`";
Emil Velikov7e2af372017-04-07 12:13:56 +0100496
Eric Anholt18f8da72015-12-01 11:57:49 -0800497 ./autogen.sh --enable-debug
Gert Wollny39fe51c2017-09-14 12:27:42 +0200498 $LIBUNWIND_FLAGS
Emil Velikov7e2af372017-04-07 12:13:56 +0100499 $DRI_LOADERS
Emil Velikov8479fd82017-04-06 18:01:19 +0100500 --with-dri-drivers=$DRI_DRIVERS
Emil Velikov0e6a36c2017-04-07 14:06:25 +0100501 $GALLIUM_ST
Emil Velikov8479fd82017-04-06 18:01:19 +0100502 --with-gallium-drivers=$GALLIUM_DRIVERS
503 --with-vulkan-drivers=$VULKAN_DRIVERS
Eric Anholt78ab62b2016-08-18 14:10:57 -0700504 --disable-llvm-shared-libs
Emil Velikov7e2af372017-04-07 12:13:56 +0100505 &&
506 make && eval $MAKE_CHECK_COMMAND;
Emil Velikovabcfea22017-04-06 14:23:36 +0100507 fi
508
509 - if test "x$BUILD" = xscons; then
Emil Velikovf55d98a2017-04-06 16:23:21 +0100510 test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
511 test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
Emil Velikovb3f20762017-04-28 19:01:33 +0100512 scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND;
Eric Anholt18f8da72015-12-01 11:57:49 -0800513 fi
Dylan Bakerdf820122017-09-27 10:37:28 -0700514
515 - if test "x$BUILD" = xmeson; then
Eric Engestromd246aa32017-10-04 13:54:14 +0100516 export CFLAGS="$CFLAGS -isystem`pwd`";
Dylan Bakerdf820122017-09-27 10:37:28 -0700517 meson _build $MESON_OPTIONS;
Dylan Baker68c91262017-10-04 11:38:04 -0700518 ninja -C _build;
Dylan Bakerdf820122017-09-27 10:37:28 -0700519 fi