language: c
-sudo: false
-dist: trusty
+dist: xenial
cache:
apt: true
addons:
apt:
sources:
- - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
+ - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
- # llvm-7 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
- # From sources above
- llvm-7-dev
# Common
- xz-utils
- libelf-dev
- python3.5
- python3-pip
+ - python3-setuptools
- env:
- LABEL="meson loaders/classic DRI"
- BUILD=meson
packages:
- xz-utils
- x11proto-xf86vidmode-dev
+ - libxxf86vm-dev
- libexpat1-dev
- libx11-xcb-dev
- libxdamage-dev
- libxfixes-dev
- python3.5
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make loaders/classic DRI"
- BUILD=make
packages:
- xz-utils
- x11proto-xf86vidmode-dev
+ - libxxf86vm-dev
- libexpat1-dev
- libx11-xcb-dev
- libxdamage-dev
- libxfixes-dev
- python3-pip
+ - python3-setuptools
- env:
# NOTE: Building SWR is 2x (yes two) times slower than all the other
# gallium drivers combined.
- LIBUNWIND_FLAGS="--enable-libunwind"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-6.0
- # llvm-6 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
- # From sources above
- llvm-6.0-dev
# Common
- xz-utils
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium Drivers RadeonSI"
- BUILD=make
addons:
apt:
sources:
- - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
+ - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
- # llvm-7 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
# From sources above
- llvm-7-dev
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium Drivers Other"
- BUILD=make
- MAKE_CHECK_COMMAND="true"
- LLVM_VERSION=3.9
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- # New binutils linker is required for llvm-3.9
- - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
- DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
- DRI_DRIVERS=""
- GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
- LIBUNWIND_FLAGS="--enable-libunwind"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-3.9
packages:
- - binutils-2.26
# LLVM packaging is broken and misses these dependencies
- libedit-dev
- # From sources above
- llvm-3.9-dev
# Common
- xz-utils
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium ST Clover LLVM-3.9"
- BUILD=make
- MAKE_CHECK_COMMAND="true"
- LLVM_VERSION=3.9
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- - OVERRIDE_CC=gcc-4.7
- - OVERRIDE_CXX=g++-4.7
- # New binutils linker is required for llvm-3.9
- - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
- DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
- DRI_DRIVERS=""
- 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"
- LIBUNWIND_FLAGS="--enable-libunwind"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-3.9
packages:
- - binutils-2.26
- libclc-dev
# LLVM packaging is broken and misses these dependencies
- libedit-dev
- - g++-4.7
- # From sources above
- llvm-3.9-dev
- clang-3.9
- libclang-3.9-dev
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium ST Clover LLVM-4.0"
- BUILD=make
- MAKE_CHECK_COMMAND="true"
- LLVM_VERSION=4.0
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- - OVERRIDE_CC=gcc-4.8
- - OVERRIDE_CXX=g++-4.8
- DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
- DRI_DRIVERS=""
- 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"
- LIBUNWIND_FLAGS="--enable-libunwind"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-4.0
packages:
- libclc-dev
# LLVM packaging is broken and misses these dependencies
- libedit-dev
- - g++-4.8
- # From sources above
- llvm-4.0-dev
- clang-4.0
- libclang-4.0-dev
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium ST Clover LLVM-5.0"
- BUILD=make
- MAKE_CHECK_COMMAND="true"
- LLVM_VERSION=5.0
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- - OVERRIDE_CC=gcc-4.8
- - OVERRIDE_CXX=g++-4.8
- DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
- DRI_DRIVERS=""
- 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"
- LIBUNWIND_FLAGS="--enable-libunwind"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-5.0
packages:
- libclc-dev
# LLVM packaging is broken and misses these dependencies
- libedit-dev
- - g++-4.8
- # From sources above
- llvm-5.0-dev
- clang-5.0
- libclang-5.0-dev
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium ST Clover LLVM-6.0"
- BUILD=make
- LIBUNWIND_FLAGS="--enable-libunwind"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-6.0
- # llvm-6 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
- libclc-dev
- # From sources above
- llvm-6.0-dev
- clang-6.0
- libclang-6.0-dev
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Gallium ST Clover LLVM-7"
- BUILD=make
addons:
apt:
sources:
- - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
+ - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
- # llvm-7 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
- libclc-dev
# From sources above
- BUILD=make
- MAKEFLAGS="-j4"
- MAKE_CHECK_COMMAND="true"
- - LLVM_VERSION=3.3
+ - LLVM_VERSION=3.5
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
- DRI_DRIVERS=""
addons:
apt:
packages:
- # We actually want to test against llvm-3.3
- - llvm-3.3-dev
+ # We actually want to test against llvm-3.3, yet 3.5 is available
+ - llvm-3.5-dev
# Nine requires gcc 4.6... which is the one we have right ?
- libxvmc-dev
# Build locally, for now.
- libelf-dev
- libunwind8-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="make Vulkan"
- BUILD=make
addons:
apt:
sources:
- - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
+ - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
- # llvm-7 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
# From sources above
- llvm-7-dev
- libx11-xcb-dev
- libelf-dev
- python3-pip
+ - python3-setuptools
- env:
- LABEL="scons"
- BUILD=scons
- SCONS_TARGET="llvm=1"
# Keep it symmetrical to the make build.
- SCONS_CHECK_COMMAND="scons llvm=1 check"
- - LLVM_VERSION=3.3
+ - LLVM_VERSION=3.5
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
addons:
apt:
packages:
# LLVM packaging is broken and misses these dependencies
- libedit-dev
- - llvm-3.3-dev
+ # We actually want to test against llvm-3.3, yet 3.5 is available
+ - llvm-3.5-dev
# Common
- xz-utils
- x11proto-xf86vidmode-dev
- SCONS_CHECK_COMMAND="true"
addons:
apt:
- sources:
- - llvm-toolchain-trusty-6.0
- # llvm-6 requires libstdc++4.9 which is not in main repo
- - ubuntu-toolchain-r-test
packages:
- # From sources above
- llvm-6.0-dev
# Common
- xz-utils
install:
# Install a more modern meson from pip, since the version in the
- # ubuntu repos is often quite old. This requires python>=3.5, so
- # let's make it default
+ # ubuntu repos is often quite old.
- if test "x$BUILD" = xmeson; then
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 10;
pip3 install --user meson;
pip3 install --user mako;
fi
tar -axvf $WAYLAND_PROTOCOLS_VERSION.tar.xz
(cd $WAYLAND_PROTOCOLS_VERSION && ./configure --prefix=$HOME/prefix && make install)
- # Meson requires ninja >= 1.6, but trusty has 1.3.x
+ # Meson requires ninja >= 1.6, but xenial has 1.3.x
wget https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-linux.zip
unzip ninja-linux.zip
mv ninja $HOME/prefix/bin/
script:
- if test "x$BUILD" = xmake; then
- test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
- test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
- test -n "$OVERRIDE_PATH" && export PATH="$OVERRIDE_PATH:$PATH";
-
export CFLAGS="$CFLAGS -isystem`pwd`";
mkdir build &&
fi
- if test "x$BUILD" = xscons; then
- test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
- test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND;
fi