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 |
Andres Gomez | 29322da | 2017-04-07 15:16:21 +0300 | [diff] [blame] | 23 | - LIBTXC_DXTN_VERSION=libtxc_dxtn-1.0.1 |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 24 | - LIBVDPAU_VERSION=libvdpau-1.1 |
| 25 | - LIBVA_VERSION=libva-1.6.2 |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 26 | - LIBWAYLAND_VERSION=wayland-1.11.1 |
Andres Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 27 | - WAYLAND_PROTOCOLS_VERSION=wayland-protocols-1.8 |
| 28 | - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig |
Emil Velikov | cb820da | 2017-04-06 13:32:36 +0100 | [diff] [blame] | 29 | - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_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 | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 65 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 66 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 67 | - 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] | 68 | - GALLIUM_DRIVERS="swr" |
| 69 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 70 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 71 | addons: |
| 72 | apt: |
| 73 | sources: |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 74 | - llvm-toolchain-trusty-3.9 |
| 75 | packages: |
| 76 | # LLVM packaging is broken and misses these dependencies |
| 77 | - libedit-dev |
| 78 | # From sources above |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 79 | - llvm-3.9-dev |
| 80 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 81 | - xz-utils |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 82 | - x11proto-xf86vidmode-dev |
| 83 | - libexpat1-dev |
| 84 | - libx11-xcb-dev |
| 85 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 86 | - libunwind8-dev |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 87 | - env: |
| 88 | - LABEL="make Gallium Drivers Other" |
| 89 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 90 | - MAKEFLAGS="-j4" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 91 | - MAKE_CHECK_COMMAND="true" |
| 92 | - LLVM_VERSION=3.9 |
| 93 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 94 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 95 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 96 | - 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] | 97 | - 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] | 98 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 99 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 100 | addons: |
| 101 | apt: |
| 102 | sources: |
| 103 | - llvm-toolchain-trusty-3.9 |
| 104 | packages: |
| 105 | # LLVM packaging is broken and misses these dependencies |
| 106 | - libedit-dev |
| 107 | # From sources above |
| 108 | - llvm-3.9-dev |
| 109 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 110 | - xz-utils |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 111 | - x11proto-xf86vidmode-dev |
| 112 | - libexpat1-dev |
| 113 | - libx11-xcb-dev |
| 114 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 115 | - libunwind8-dev |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 116 | - env: |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 117 | # NOTE: Analogous to SWR above, building Clover is quite slow. |
| 118 | - LABEL="make Gallium ST Clover" |
| 119 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 120 | - MAKEFLAGS="-j4" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 121 | - MAKE_CHECK_COMMAND="true" |
| 122 | - LLVM_VERSION=3.6 |
| 123 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 124 | - OVERRIDE_CC=gcc-4.7 |
| 125 | - OVERRIDE_CXX=g++-4.7 |
| 126 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 127 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 128 | - 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" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 129 | # i915 most likely doesn't work with OpenCL. |
| 130 | # Regardless - we're doing a quick build test here. |
| 131 | - GALLIUM_DRIVERS="i915" |
| 132 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 133 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 134 | addons: |
| 135 | apt: |
| 136 | sources: |
| 137 | - llvm-toolchain-trusty-3.6 |
| 138 | packages: |
| 139 | - libclc-dev |
| 140 | # LLVM packaging is broken and misses these dependencies |
| 141 | - libedit-dev |
| 142 | - g++-4.7 |
| 143 | # From sources above |
| 144 | - llvm-3.6-dev |
| 145 | - clang-3.6 |
| 146 | - libclang-3.6-dev |
| 147 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 148 | - xz-utils |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 149 | - x11proto-xf86vidmode-dev |
| 150 | - libexpat1-dev |
| 151 | - libx11-xcb-dev |
| 152 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 153 | - libunwind8-dev |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 154 | - env: |
Jan Vesely | b9a358a | 2017-09-16 18:52:52 -0400 | [diff] [blame^] | 155 | # NOTE: Analogous to SWR above, building Clover is quite slow. |
| 156 | - LABEL="make Gallium ST Clover LLVM-3.9" |
| 157 | - BUILD=make |
| 158 | - MAKEFLAGS="-j4" |
| 159 | - MAKE_CHECK_COMMAND="true" |
| 160 | - LLVM_VERSION=3.9 |
| 161 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 162 | - OVERRIDE_CC=gcc-4.7 |
| 163 | - OVERRIDE_CXX=g++-4.7 |
| 164 | # New binutils linker is required for llvm-3.9 |
| 165 | - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin |
| 166 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 167 | - DRI_DRIVERS="" |
| 168 | - 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" |
| 169 | - GALLIUM_DRIVERS="r600,radeonsi" |
| 170 | - VULKAN_DRIVERS="" |
| 171 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 172 | addons: |
| 173 | apt: |
| 174 | sources: |
| 175 | - llvm-toolchain-trusty-3.9 |
| 176 | packages: |
| 177 | - binutils-2.26 |
| 178 | - libclc-dev |
| 179 | # LLVM packaging is broken and misses these dependencies |
| 180 | - libedit-dev |
| 181 | - g++-4.7 |
| 182 | # From sources above |
| 183 | - llvm-3.9-dev |
| 184 | - clang-3.9 |
| 185 | - libclang-3.9-dev |
| 186 | # Common |
| 187 | - xz-utils |
| 188 | - x11proto-xf86vidmode-dev |
| 189 | - libexpat1-dev |
| 190 | - libx11-xcb-dev |
| 191 | - libelf-dev |
| 192 | - libunwind8-dev |
| 193 | - env: |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 194 | - LABEL="make Gallium ST Other" |
| 195 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 196 | - MAKEFLAGS="-j4" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 197 | - MAKE_CHECK_COMMAND="true" |
Gert Wollny | d367581 | 2017-09-14 12:27:41 +0200 | [diff] [blame] | 198 | - LLVM_VERSION=3.3 |
| 199 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 200 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 201 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 202 | - 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] | 203 | # We need swrast for osmesa and nine. |
| 204 | # i915 most likely doesn't work with most ST. |
| 205 | # Regardless - we're doing a quick build test here. |
| 206 | - GALLIUM_DRIVERS="i915,swrast" |
| 207 | - VULKAN_DRIVERS="" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 208 | - LIBUNWIND_FLAGS="--enable-libunwind" |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 209 | addons: |
| 210 | apt: |
| 211 | packages: |
Gert Wollny | d367581 | 2017-09-14 12:27:41 +0200 | [diff] [blame] | 212 | # We actually want to test against llvm-3.3 |
| 213 | - llvm-3.3-dev |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 214 | # Nine requires gcc 4.6... which is the one we have right ? |
| 215 | - libxvmc-dev |
| 216 | # Build locally, for now. |
| 217 | #- libvdpau-dev |
| 218 | #- libva-dev |
| 219 | - libomxil-bellagio-dev |
| 220 | # LLVM packaging is broken and misses these dependencies |
| 221 | - libedit-dev |
| 222 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 223 | - xz-utils |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 224 | - x11proto-xf86vidmode-dev |
| 225 | - libexpat1-dev |
| 226 | - libx11-xcb-dev |
| 227 | - libelf-dev |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 228 | - libunwind8-dev |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 229 | - env: |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 230 | - LABEL="make Vulkan" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 231 | - BUILD=make |
Emil Velikov | b1d45c3 | 2017-04-27 17:09:12 +0100 | [diff] [blame] | 232 | - MAKEFLAGS="-j4" |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 233 | - 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] | 234 | - LLVM_VERSION=3.9 |
| 235 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | 552cd5c | 2017-05-04 11:05:27 +0100 | [diff] [blame] | 236 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 237 | - DRI_DRIVERS="" |
Andres Gomez | 7e8f03b | 2017-09-16 20:23:56 +0300 | [diff] [blame] | 238 | - 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] | 239 | - GALLIUM_DRIVERS="" |
| 240 | - VULKAN_DRIVERS="intel,radeon" |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 241 | - LIBUNWIND_FLAGS="--disable-libunwind" |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 242 | addons: |
| 243 | apt: |
| 244 | sources: |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 245 | - llvm-toolchain-trusty-3.9 |
| 246 | packages: |
| 247 | # LLVM packaging is broken and misses these dependencies |
| 248 | - libedit-dev |
| 249 | # From sources above |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 250 | - llvm-3.9-dev |
| 251 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 252 | - xz-utils |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 253 | - x11proto-xf86vidmode-dev |
| 254 | - libexpat1-dev |
| 255 | - libx11-xcb-dev |
| 256 | - libelf-dev |
| 257 | - env: |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 258 | - LABEL="scons" |
| 259 | - BUILD=scons |
| 260 | - SCONSFLAGS="-j4" |
| 261 | # Explicitly disable. |
| 262 | - SCONS_TARGET="llvm=0" |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 263 | # Keep it symmetrical to the make build. |
| 264 | - SCONS_CHECK_COMMAND="scons llvm=0 check" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 265 | addons: |
| 266 | apt: |
| 267 | packages: |
| 268 | - scons |
| 269 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 270 | - xz-utils |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 271 | - x11proto-xf86vidmode-dev |
| 272 | - libexpat1-dev |
| 273 | - libx11-xcb-dev |
| 274 | - libelf-dev |
Emil Velikov | 56ba252 | 2017-04-06 14:38:40 +0100 | [diff] [blame] | 275 | - env: |
| 276 | - LABEL="scons LLVM" |
| 277 | - BUILD=scons |
| 278 | - SCONSFLAGS="-j4" |
| 279 | - SCONS_TARGET="llvm=1" |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 280 | # Keep it symmetrical to the make build. |
| 281 | - SCONS_CHECK_COMMAND="scons llvm=1 check" |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 282 | - LLVM_VERSION=3.3 |
| 283 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 284 | addons: |
| 285 | apt: |
| 286 | packages: |
| 287 | - scons |
| 288 | # LLVM packaging is broken and misses these dependencies |
| 289 | - libedit-dev |
| 290 | - llvm-3.3-dev |
| 291 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 292 | - xz-utils |
Emil Velikov | 85ee2c6 | 2017-04-06 14:41:44 +0100 | [diff] [blame] | 293 | - x11proto-xf86vidmode-dev |
| 294 | - libexpat1-dev |
| 295 | - libx11-xcb-dev |
| 296 | - libelf-dev |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 297 | - env: |
| 298 | - LABEL="scons SWR" |
| 299 | - BUILD=scons |
| 300 | - SCONSFLAGS="-j4" |
| 301 | - SCONS_TARGET="swr=1" |
| 302 | - LLVM_VERSION=3.9 |
| 303 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 304 | # Keep it symmetrical to the make build. There's no actual SWR, yet. |
| 305 | - SCONS_CHECK_COMMAND="true" |
Emil Velikov | 4592741 | 2017-07-04 16:53:40 +0100 | [diff] [blame] | 306 | - OVERRIDE_CC="gcc-4.8" |
| 307 | - OVERRIDE_CXX="g++-4.8" |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 308 | addons: |
| 309 | apt: |
| 310 | sources: |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 311 | - llvm-toolchain-trusty-3.9 |
| 312 | packages: |
| 313 | - scons |
| 314 | # LLVM packaging is broken and misses these dependencies |
| 315 | - libedit-dev |
| 316 | # From sources above |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 317 | - llvm-3.9-dev |
| 318 | # Common |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 319 | - xz-utils |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 320 | - x11proto-xf86vidmode-dev |
| 321 | - libexpat1-dev |
| 322 | - libx11-xcb-dev |
| 323 | - libelf-dev |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 324 | |
| 325 | install: |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 326 | - pip install --user mako |
| 327 | |
Eric Anholt | ecbc76c | 2016-08-18 12:29:31 -0700 | [diff] [blame] | 328 | # Since libdrm gets updated in configure.ac regularly, try to pick up the |
| 329 | # latest version from there. |
Emil Velikov | 96d86b1 | 2017-02-01 22:30:25 +0000 | [diff] [blame] | 330 | - for line in `grep "^LIBDRM.*_REQUIRED=" configure.ac`; do |
Eric Anholt | ecbc76c | 2016-08-18 12:29:31 -0700 | [diff] [blame] | 331 | old_ver=`echo $LIBDRM_VERSION | sed 's/libdrm-//'`; |
| 332 | new_ver=`echo $line | sed 's/.*REQUIRED=//'`; |
| 333 | if `echo "$old_ver,$new_ver" | tr ',' '\n' | sort -Vc 2> /dev/null`; then |
| 334 | export LIBDRM_VERSION="libdrm-$new_ver"; |
| 335 | fi; |
| 336 | done |
| 337 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 338 | # Install dependencies where we require specific versions (or where |
| 339 | # disallowed by Travis CI's package whitelisting). |
| 340 | |
| 341 | - wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2 |
| 342 | - tar -jxvf $XORGMACROS_VERSION.tar.bz2 |
| 343 | - (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 344 | |
| 345 | - wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2 |
| 346 | - tar -jxvf $GLPROTO_VERSION.tar.bz2 |
| 347 | - (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 348 | |
| 349 | - wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2 |
| 350 | - tar -jxvf $DRI2PROTO_VERSION.tar.bz2 |
| 351 | - (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 352 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 353 | - wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2 |
| 354 | - tar -jxvf $XCBPROTO_VERSION.tar.bz2 |
| 355 | - (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 356 | |
| 357 | - wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2 |
| 358 | - tar -jxvf $LIBXCB_VERSION.tar.bz2 |
| 359 | - (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 360 | |
| 361 | - wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2 |
| 362 | - tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 |
| 363 | - (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 364 | |
| 365 | - wget http://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2 |
| 366 | - tar -jxvf $LIBDRM_VERSION.tar.bz2 |
Emil Velikov | 3026717 | 2017-02-01 22:30:26 +0000 | [diff] [blame] | 367 | - (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] | 368 | |
| 369 | - wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2 |
| 370 | - tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2 |
| 371 | - (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 372 | |
Andres Gomez | 29322da | 2017-04-07 15:16:21 +0300 | [diff] [blame] | 373 | # libtxc-dxtn uses the patented S3 Texture Compression |
| 374 | # algorithm. Therefore, we don't want to use this library but it is |
| 375 | # still possible through setting the USE_TXC_DXTN variable to yes in |
| 376 | # the travis web UI. |
| 377 | # |
| 378 | # According to Wikipedia, the patent expires on October 2, 2017: |
| 379 | # https://en.wikipedia.org/wiki/S3_Texture_Compression#Patent |
| 380 | - if test "x$USE_TXC_DXTN" = xyes; then |
| 381 | wget https://people.freedesktop.org/~cbrill/libtxc_dxtn/$LIBTXC_DXTN_VERSION.tar.bz2; |
| 382 | tar -jxvf $LIBTXC_DXTN_VERSION.tar.bz2; |
| 383 | (cd $LIBTXC_DXTN_VERSION && ./configure --prefix=$HOME/prefix && make install); |
| 384 | fi |
| 385 | |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 386 | - wget http://people.freedesktop.org/~aplattner/vdpau/$LIBVDPAU_VERSION.tar.bz2 |
| 387 | - tar -jxvf $LIBVDPAU_VERSION.tar.bz2 |
| 388 | - (cd $LIBVDPAU_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 389 | |
| 390 | - wget http://www.freedesktop.org/software/vaapi/releases/libva/$LIBVA_VERSION.tar.bz2 |
| 391 | - tar -jxvf $LIBVA_VERSION.tar.bz2 |
| 392 | - (cd $LIBVA_VERSION && ./configure --prefix=$HOME/prefix --disable-wayland --disable-dummy-driver && make install) |
| 393 | |
Andres Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 394 | - wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz |
Emil Velikov | 27a0b38 | 2017-04-18 13:57:31 +0100 | [diff] [blame] | 395 | - tar -axvf $LIBWAYLAND_VERSION.tar.xz |
| 396 | - (cd $LIBWAYLAND_VERSION && ./configure --prefix=$HOME/prefix --enable-libraries --without-host-scanner --disable-documentation --disable-dtd-validation && make install) |
| 397 | |
Andres Gomez | 9375c1d | 2017-07-19 19:14:03 +0300 | [diff] [blame] | 398 | - wget $WAYLAND_RELEASES/$WAYLAND_PROTOCOLS_VERSION.tar.xz |
| 399 | - tar -axvf $WAYLAND_PROTOCOLS_VERSION.tar.xz |
| 400 | - (cd $WAYLAND_PROTOCOLS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 401 | |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 402 | # Generate the header since one is missing on the Travis instance |
| 403 | - mkdir -p linux |
| 404 | - printf "%s\n" \ |
| 405 | "#ifndef _LINUX_MEMFD_H" \ |
| 406 | "#define _LINUX_MEMFD_H" \ |
| 407 | "" \ |
| 408 | "#define __NR_memfd_create 319" \ |
| 409 | "#define SYS_memfd_create __NR_memfd_create" \ |
| 410 | "" \ |
| 411 | "#define MFD_CLOEXEC 0x0001U" \ |
| 412 | "#define MFD_ALLOW_SEALING 0x0002U" \ |
| 413 | "" \ |
| 414 | "#endif /* _LINUX_MEMFD_H */" > linux/memfd.h |
| 415 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 416 | script: |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 417 | - if test "x$BUILD" = xmake; then |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 418 | test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC"; |
| 419 | test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX"; |
Jan Vesely | b9a358a | 2017-09-16 18:52:52 -0400 | [diff] [blame^] | 420 | test -n "$OVERRIDE_PATH" && export PATH="$OVERRIDE_PATH:$PATH"; |
| 421 | |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 422 | export CC="$CC -isystem`pwd`"; |
| 423 | |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 424 | ./autogen.sh --enable-debug |
Gert Wollny | 39fe51c | 2017-09-14 12:27:42 +0200 | [diff] [blame] | 425 | $LIBUNWIND_FLAGS |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 426 | $DRI_LOADERS |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 427 | --with-dri-drivers=$DRI_DRIVERS |
Emil Velikov | 0e6a36c | 2017-04-07 14:06:25 +0100 | [diff] [blame] | 428 | $GALLIUM_ST |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 429 | --with-gallium-drivers=$GALLIUM_DRIVERS |
| 430 | --with-vulkan-drivers=$VULKAN_DRIVERS |
Eric Anholt | 78ab62b | 2016-08-18 14:10:57 -0700 | [diff] [blame] | 431 | --disable-llvm-shared-libs |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 432 | && |
| 433 | make && eval $MAKE_CHECK_COMMAND; |
Emil Velikov | abcfea2 | 2017-04-06 14:23:36 +0100 | [diff] [blame] | 434 | fi |
| 435 | |
| 436 | - if test "x$BUILD" = xscons; then |
Emil Velikov | f55d98a | 2017-04-06 16:23:21 +0100 | [diff] [blame] | 437 | test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC"; |
| 438 | test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX"; |
Emil Velikov | b3f2076 | 2017-04-28 19:01:33 +0100 | [diff] [blame] | 439 | scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND; |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 440 | fi |