Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 1 | language: c |
| 2 | |
Andres Gomez | 7819d26 | 2017-04-05 20:27:30 +0300 | [diff] [blame] | 3 | sudo: false |
Eric Anholt | 80a872f | 2016-08-18 13:12:18 -0700 | [diff] [blame] | 4 | dist: trusty |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 5 | |
| 6 | cache: |
Emil Velikov | 486f28b | 2017-04-06 16:36:59 +0100 | [diff] [blame] | 7 | apt: true |
Emil Velikov | 6431b98 | 2017-04-06 14:02:38 +0100 | [diff] [blame] | 8 | ccache: true |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 9 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 10 | env: |
| 11 | global: |
| 12 | - XORG_RELEASES=http://xorg.freedesktop.org/releases/individual |
| 13 | - XCB_RELEASES=http://xcb.freedesktop.org/dist |
Andres Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 14 | - WAYLAND_RELEASES=http://wayland.freedesktop.org/releases |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 15 | - XORGMACROS_VERSION=util-macros-1.19.0 |
| 16 | - GLPROTO_VERSION=glproto-1.4.17 |
| 17 | - DRI2PROTO_VERSION=dri2proto-2.8 |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 18 | - LIBPCIACCESS_VERSION=libpciaccess-0.13.4 |
Rhys Kidd | cba8086 | 2017-01-12 23:06:34 -0500 | [diff] [blame] | 19 | - LIBDRM_VERSION=libdrm-2.4.74 |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 20 | - XCBPROTO_VERSION=xcb-proto-1.11 |
| 21 | - LIBXCB_VERSION=libxcb-1.11 |
| 22 | - LIBXSHMFENCE_VERSION=libxshmfence-1.2 |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 23 | - LIBVDPAU_VERSION=libvdpau-1.1 |
| 24 | - LIBVA_VERSION=libva-1.6.2 |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 25 | - LIBWAYLAND_VERSION=wayland-1.11.1 |
Andres Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 26 | - WAYLAND_PROTOCOLS_VERSION=wayland-protocols-1.8 |
| 27 | - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig |
Emil Velikov | cb820da | 2017-04-06 13:32:36 +0100 | [diff] [blame] | 28 | - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH" |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 29 | - PATH="$HOME/prefix/bin:$PATH" |
Emil Velikov | 56ba252 | 2017-04-06 14:38:40 +0100 | [diff] [blame] | 30 | |
| 31 | matrix: |
| 32 | include: |
| 33 | - env: |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 34 | - LABEL="make loaders/classic DRI" |
Emil Velikov | 56ba252 | 2017-04-06 14:38:40 +0100 | [diff] [blame] | 35 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 36 | - MAKEFLAGS="-j4" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 37 | - MAKE_CHECK_COMMAND="make check" |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 38 | - DRI_LOADERS="--enable-glx --enable-gbm --enable-egl --with-platforms=x11,drm,surfaceless,wayland --enable-osmesa" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 39 | - DRI_DRIVERS="i915,i965,radeon,r200,swrast,nouveau" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 40 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 41 | - GALLIUM_DRIVERS="" |
| 42 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 43 | - LIBUNWIND_FLAGS="--disable-libunwind" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 44 | addons: |
| 45 | apt: |
| 46 | packages: |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 47 | - xz-utils |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 48 | - x11proto-xf86vidmode-dev |
| 49 | - libexpat1-dev |
| 50 | - libx11-xcb-dev |
Eric Engestrom | 3c7c82c | 2017-06-22 19:14:20 +0100 | [diff] [blame] | 51 | - libxdamage-dev |
| 52 | - libxfixes-dev |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 53 | - 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 Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 59 | - MAKEFLAGS="-j4" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 60 | - MAKE_CHECK_COMMAND="true" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 61 | - LLVM_VERSION=3.9 |
| 62 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | 4592741 | 2017-07-04 16:53:40 +0100 | [diff] [blame] | 63 | - OVERRIDE_CC="gcc-4.8" |
| 64 | - OVERRIDE_CXX="g++-4.8" |
Emil Velikov | a7ecf7b | 2017-10-05 11:19:06 +0100 | [diff] [blame] | 65 | # New binutils linker is required for llvm-3.9 |
| 66 | - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 67 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 68 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 69 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 70 | - GALLIUM_DRIVERS="swr" |
| 71 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 72 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 73 | addons: |
| 74 | apt: |
| 75 | sources: |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 76 | - llvm-toolchain-trusty-3.9 |
| 77 | packages: |
Emil Velikov | a7ecf7b | 2017-10-05 11:19:06 +0100 | [diff] [blame] | 78 | - binutils-2.26 |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 79 | # LLVM packaging is broken and misses these dependencies |
| 80 | - libedit-dev |
| 81 | # From sources above |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 82 | - llvm-3.9-dev |
| 83 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 84 | - xz-utils |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 85 | - x11proto-xf86vidmode-dev |
| 86 | - libexpat1-dev |
| 87 | - libx11-xcb-dev |
| 88 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 89 | - libunwind8-dev |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 90 | - env: |
| 91 | - LABEL="make Gallium Drivers Other" |
| 92 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 93 | - MAKEFLAGS="-j4" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 94 | - MAKE_CHECK_COMMAND="true" |
| 95 | - LLVM_VERSION=3.9 |
| 96 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | a7ecf7b | 2017-10-05 11:19:06 +0100 | [diff] [blame] | 97 | # New binutils linker is required for llvm-3.9 |
| 98 | - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 99 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 100 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 101 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
Eric Anholt | 7029ec0 | 2017-05-08 15:57:21 -0700 | [diff] [blame] | 102 | - GALLIUM_DRIVERS="i915,nouveau,pl111,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl,etnaviv,imx" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 103 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 104 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 105 | addons: |
| 106 | apt: |
| 107 | sources: |
| 108 | - llvm-toolchain-trusty-3.9 |
| 109 | packages: |
Emil Velikov | a7ecf7b | 2017-10-05 11:19:06 +0100 | [diff] [blame] | 110 | - binutils-2.26 |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 111 | # LLVM packaging is broken and misses these dependencies |
| 112 | - libedit-dev |
| 113 | # From sources above |
| 114 | - llvm-3.9-dev |
| 115 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 116 | - xz-utils |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 117 | - x11proto-xf86vidmode-dev |
| 118 | - libexpat1-dev |
| 119 | - libx11-xcb-dev |
| 120 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 121 | - libunwind8-dev |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 122 | - env: |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 123 | # NOTE: Analogous to SWR above, building Clover is quite slow. |
Jan Vesely | b9a358a | 2017-09-16 18:52:52 -0400 | [diff] [blame] | 124 | - 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 Vesely | 8af90b5 | 2017-09-16 18:54:24 -0400 | [diff] [blame] | 162 | # 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 Vesely | 7148795 | 2017-09-16 18:55:48 -0400 | [diff] [blame] | 198 | # 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 Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 234 | - LABEL="make Gallium ST Other" |
| 235 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 236 | - MAKEFLAGS="-j4" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 237 | - MAKE_CHECK_COMMAND="true" |
Gert Wollny | d367581 | 2017-09-14 12:27:41 +0200 | [diff] [blame] | 238 | - LLVM_VERSION=3.3 |
| 239 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 240 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 241 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 242 | - GALLIUM_ST="--enable-dri --disable-opencl --enable-xa --enable-nine --enable-xvmc --enable-vdpau --enable-va --enable-omx-bellagio --enable-gallium-osmesa" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 243 | # 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 Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 248 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 249 | addons: |
| 250 | apt: |
| 251 | packages: |
Gert Wollny | d367581 | 2017-09-14 12:27:41 +0200 | [diff] [blame] | 252 | # We actually want to test against llvm-3.3 |
| 253 | - llvm-3.3-dev |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 254 | # 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 Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 263 | - xz-utils |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 264 | - x11proto-xf86vidmode-dev |
| 265 | - libexpat1-dev |
| 266 | - libx11-xcb-dev |
| 267 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 268 | - libunwind8-dev |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 269 | - env: |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 270 | - LABEL="make Vulkan" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 271 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 272 | - MAKEFLAGS="-j4" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 273 | - MAKE_CHECK_COMMAND="make -C src/gtest check && make -C src/intel check" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 274 | - LLVM_VERSION=3.9 |
| 275 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | a7ecf7b | 2017-10-05 11:19:06 +0100 | [diff] [blame] | 276 | # New binutils linker is required for llvm-3.9 |
| 277 | - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin |
Emil Velikov | 552cd5c | 2017-05-04 11:05:27 +0100 | [diff] [blame] | 278 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 279 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 280 | - 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 Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 281 | - GALLIUM_DRIVERS="" |
| 282 | - VULKAN_DRIVERS="intel,radeon" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 283 | - LIBUNWIND_FLAGS="--disable-libunwind" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 284 | addons: |
| 285 | apt: |
| 286 | sources: |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 287 | - llvm-toolchain-trusty-3.9 |
| 288 | packages: |
Emil Velikov | a7ecf7b | 2017-10-05 11:19:06 +0100 | [diff] [blame] | 289 | - binutils-2.26 |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 290 | # LLVM packaging is broken and misses these dependencies |
| 291 | - libedit-dev |
| 292 | # From sources above |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 293 | - llvm-3.9-dev |
| 294 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 295 | - xz-utils |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 296 | - x11proto-xf86vidmode-dev |
| 297 | - libexpat1-dev |
| 298 | - libx11-xcb-dev |
| 299 | - libelf-dev |
| 300 | - env: |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 301 | - LABEL="scons" |
| 302 | - BUILD=scons |
| 303 | - SCONSFLAGS="-j4" |
| 304 | # Explicitly disable. |
| 305 | - SCONS_TARGET="llvm=0" |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 306 | # Keep it symmetrical to the make build. |
| 307 | - SCONS_CHECK_COMMAND="scons llvm=0 check" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 308 | addons: |
| 309 | apt: |
| 310 | packages: |
| 311 | - scons |
| 312 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 313 | - xz-utils |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 314 | - x11proto-xf86vidmode-dev |
| 315 | - libexpat1-dev |
| 316 | - libx11-xcb-dev |
| 317 | - libelf-dev |
Emil Velikov | 56ba252 | 2017-04-06 14:38:40 +0100 | [diff] [blame] | 318 | - env: |
| 319 | - LABEL="scons LLVM" |
| 320 | - BUILD=scons |
| 321 | - SCONSFLAGS="-j4" |
| 322 | - SCONS_TARGET="llvm=1" |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 323 | # Keep it symmetrical to the make build. |
| 324 | - SCONS_CHECK_COMMAND="scons llvm=1 check" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 325 | - 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 Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 335 | - xz-utils |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 336 | - x11proto-xf86vidmode-dev |
| 337 | - libexpat1-dev |
| 338 | - libx11-xcb-dev |
| 339 | - libelf-dev |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 340 | - 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 Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 347 | # Keep it symmetrical to the make build. There's no actual SWR, yet. |
| 348 | - SCONS_CHECK_COMMAND="true" |
Emil Velikov | 4592741 | 2017-07-04 16:53:40 +0100 | [diff] [blame] | 349 | - OVERRIDE_CC="gcc-4.8" |
| 350 | - OVERRIDE_CXX="g++-4.8" |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 351 | addons: |
| 352 | apt: |
| 353 | sources: |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 354 | - 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 Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 360 | - llvm-3.9-dev |
| 361 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 362 | - xz-utils |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 363 | - x11proto-xf86vidmode-dev |
| 364 | - libexpat1-dev |
| 365 | - libx11-xcb-dev |
| 366 | - libelf-dev |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 367 | - env: |
| 368 | - LABEL="meson Vulkan" |
| 369 | - BUILD=meson |
Dylan Baker | c7081a3 | 2017-10-11 10:50:33 -0700 | [diff] [blame] | 370 | - MESON_OPTIONS="-Ddri-drivers= -Dgallium-drivers=" |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 371 | 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 Baker | c63ce5c | 2017-10-03 17:36:17 -0700 | [diff] [blame] | 385 | - env: |
| 386 | - LABEL="meson loaders/classic DRI" |
| 387 | - BUILD=meson |
Dylan Baker | c7081a3 | 2017-10-11 10:50:33 -0700 | [diff] [blame] | 388 | - MESON_OPTIONS="-Dvulkan-drivers= -Dgallium-drivers=" |
Dylan Baker | c63ce5c | 2017-10-03 17:36:17 -0700 | [diff] [blame] | 389 | 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 Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 399 | |
| 400 | install: |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 401 | - pip install --user mako |
| 402 | |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 403 | # 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 Anholt | ecbc76c | 2016-08-18 12:29:31 -0700 | [diff] [blame] | 409 | # Since libdrm gets updated in configure.ac regularly, try to pick up the |
| 410 | # latest version from there. |
Emil Velikov | 96d86b1 | 2017-02-01 22:30:25 +0000 | [diff] [blame] | 411 | - for line in `grep "^LIBDRM.*_REQUIRED=" configure.ac`; do |
Eric Anholt | ecbc76c | 2016-08-18 12:29:31 -0700 | [diff] [blame] | 412 | 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 Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 419 | # 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 Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 434 | - 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 Velikov | 3026717 | 2017-02-01 22:30:26 +0000 | [diff] [blame] | 448 | - (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix --enable-vc4 --enable-freedreno --enable-etnaviv-experimental-api && make install) |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 449 | |
| 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 Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 454 | - 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 Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 462 | - wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 463 | - 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 Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 466 | - 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 Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 470 | # 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 Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 475 | # 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 Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 489 | script: |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 490 | - if test "x$BUILD" = xmake; then |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 491 | test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC"; |
| 492 | test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX"; |
Jan Vesely | b9a358a | 2017-09-16 18:52:52 -0400 | [diff] [blame] | 493 | test -n "$OVERRIDE_PATH" && export PATH="$OVERRIDE_PATH:$PATH"; |
| 494 | |
Eric Engestrom | d246aa3 | 2017-10-04 13:54:14 +0100 | [diff] [blame] | 495 | export CFLAGS="$CFLAGS -isystem`pwd`"; |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 496 | |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 497 | ./autogen.sh --enable-debug |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 498 | $LIBUNWIND_FLAGS |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 499 | $DRI_LOADERS |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 500 | --with-dri-drivers=$DRI_DRIVERS |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 501 | $GALLIUM_ST |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 502 | --with-gallium-drivers=$GALLIUM_DRIVERS |
| 503 | --with-vulkan-drivers=$VULKAN_DRIVERS |
Eric Anholt | 78ab62b | 2016-08-18 14:10:57 -0700 | [diff] [blame] | 504 | --disable-llvm-shared-libs |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 505 | && |
| 506 | make && eval $MAKE_CHECK_COMMAND; |
Emil Velikov | abcfea2 | 2017-04-06 14:23:36 +0100 | [diff] [blame] | 507 | fi |
| 508 | |
| 509 | - if test "x$BUILD" = xscons; then |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 510 | test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC"; |
| 511 | test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX"; |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 512 | scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND; |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 513 | fi |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 514 | |
| 515 | - if test "x$BUILD" = xmeson; then |
Eric Engestrom | d246aa3 | 2017-10-04 13:54:14 +0100 | [diff] [blame] | 516 | export CFLAGS="$CFLAGS -isystem`pwd`"; |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 517 | meson _build $MESON_OPTIONS; |
Dylan Baker | 68c9126 | 2017-10-04 11:38:04 -0700 | [diff] [blame] | 518 | ninja -C _build; |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 519 | fi |