2015-11-24 00:25:29 +00:00
|
|
|
language: c
|
|
|
|
|
2018-12-13 11:20:41 +00:00
|
|
|
dist: xenial
|
2015-11-24 00:25:29 +00:00
|
|
|
|
|
|
|
cache:
|
2017-04-06 14:02:38 +01:00
|
|
|
ccache: true
|
2015-11-24 00:25:29 +00:00
|
|
|
|
2019-02-07 11:36:19 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
|
|
|
|
|
2017-04-06 14:38:40 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-01-18 13:05:06 +00:00
|
|
|
- env:
|
|
|
|
- LABEL="macOS make"
|
|
|
|
- BUILD=make
|
|
|
|
- MAKEFLAGS="-j4"
|
|
|
|
- MAKE_CHECK_COMMAND="make check"
|
|
|
|
- DRI_LOADERS="--with-platforms=x11 --disable-egl"
|
|
|
|
os: osx
|
2018-01-16 17:51:53 +00:00
|
|
|
- env:
|
|
|
|
- LABEL="macOS meson"
|
|
|
|
- BUILD=meson
|
2018-12-12 13:33:14 +00:00
|
|
|
- UNWIND="false"
|
2018-12-12 13:42:36 +00:00
|
|
|
- DRI_LOADERS="-Dglx=dri -Dgbm=false -Degl=false -Dplatforms=x11 -Dosmesa=none"
|
2018-12-12 13:52:20 +00:00
|
|
|
- GALLIUM_ST="-Ddri3=true -Dgallium-vdpau=false -Dgallium-xvmc=false -Dgallium-omx=disabled -Dgallium-va=false -Dgallium-xa=false -Dgallium-nine=false -Dgallium-opencl=disabled"
|
2018-01-16 17:51:53 +00:00
|
|
|
os: osx
|
2018-01-18 13:05:06 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext
|
|
|
|
# Set PATH for homebrew pip3 installs
|
|
|
|
PATH="$HOME/Library/Python/3.6/bin:${PATH}"
|
|
|
|
# Set PKG_CONFIG_PATH for keg-only expat
|
|
|
|
PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
|
|
|
# Set PATH for keg-only gettext
|
|
|
|
PATH="/usr/local/opt/gettext/bin:${PATH}"
|
|
|
|
|
|
|
|
# Install xquartz for prereqs ...
|
|
|
|
XQUARTZ_VERSION="2.7.11"
|
|
|
|
wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg
|
|
|
|
hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg
|
|
|
|
sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target /
|
|
|
|
hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION}
|
|
|
|
# ... and set paths
|
|
|
|
PATH="/opt/X11/bin:${PATH}"
|
|
|
|
PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
|
|
|
ACLOCAL="aclocal -I /opt/X11/share/aclocal -I /usr/local/share/aclocal"
|
|
|
|
fi
|
2015-11-24 00:25:29 +00:00
|
|
|
|
|
|
|
install:
|
2018-03-05 15:25:36 +00:00
|
|
|
# Install a more modern meson from pip, since the version in the
|
2018-12-13 11:20:41 +00:00
|
|
|
# ubuntu repos is often quite old.
|
2017-09-27 18:37:28 +01:00
|
|
|
- if test "x$BUILD" = xmeson; then
|
2018-07-17 15:12:32 +01:00
|
|
|
pip3 install --user meson;
|
2018-08-13 12:10:38 +01:00
|
|
|
pip3 install --user mako;
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install autotools build dependencies
|
|
|
|
- if test "x$BUILD" = xmake; then
|
2018-10-31 21:54:49 +00:00
|
|
|
pip2 install --user mako;
|
2017-09-27 18:37:28 +01:00
|
|
|
fi
|
|
|
|
|
2015-11-24 00:25:29 +00:00
|
|
|
# Install dependencies where we require specific versions (or where
|
|
|
|
# disallowed by Travis CI's package whitelisting).
|
|
|
|
|
|
|
|
script:
|
2015-12-01 19:57:49 +00:00
|
|
|
- if test "x$BUILD" = xmake; then
|
2017-10-04 13:54:14 +01:00
|
|
|
export CFLAGS="$CFLAGS -isystem`pwd`";
|
2017-04-07 12:13:56 +01:00
|
|
|
|
2018-06-05 16:18:51 +01:00
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
2019-01-21 10:03:37 +00:00
|
|
|
../autogen.sh
|
|
|
|
--enable-autotools
|
|
|
|
--enable-debug
|
2017-09-14 11:27:42 +01:00
|
|
|
$LIBUNWIND_FLAGS
|
2017-04-07 12:13:56 +01:00
|
|
|
$DRI_LOADERS
|
2017-04-06 18:01:19 +01:00
|
|
|
--with-dri-drivers=$DRI_DRIVERS
|
2017-04-07 14:06:25 +01:00
|
|
|
$GALLIUM_ST
|
2017-04-06 18:01:19 +01:00
|
|
|
--with-gallium-drivers=$GALLIUM_DRIVERS
|
|
|
|
--with-vulkan-drivers=$VULKAN_DRIVERS
|
2016-08-18 22:10:57 +01:00
|
|
|
--disable-llvm-shared-libs
|
2017-04-07 12:13:56 +01:00
|
|
|
&&
|
|
|
|
make && eval $MAKE_CHECK_COMMAND;
|
2017-04-06 14:23:36 +01:00
|
|
|
fi
|
|
|
|
|
2018-02-28 21:18:59 +00:00
|
|
|
- |
|
|
|
|
if test "x$BUILD" = xmeson; then
|
2019-01-02 12:28:48 +00:00
|
|
|
if test -n "$LLVM_CONFIG"; then
|
|
|
|
# We need to control the version of llvm-config we're using, so we'll
|
|
|
|
# generate a native file to do so. This requires meson >=0.49
|
|
|
|
#
|
|
|
|
echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
|
|
|
|
|
|
|
|
$LLVM_CONFIG --version
|
|
|
|
else
|
|
|
|
: > native.file
|
|
|
|
fi
|
2018-12-13 10:38:20 +00:00
|
|
|
|
2018-02-28 21:18:59 +00:00
|
|
|
export CFLAGS="$CFLAGS -isystem`pwd`"
|
2018-12-12 13:42:36 +00:00
|
|
|
meson _build \
|
2018-12-11 18:34:51 +00:00
|
|
|
--native-file=native.file \
|
2018-12-12 13:18:54 +00:00
|
|
|
-Dbuild-tests=true \
|
2018-12-12 13:33:14 +00:00
|
|
|
-Dlibunwind=${UNWIND} \
|
2018-12-12 13:42:36 +00:00
|
|
|
${DRI_LOADERS} \
|
2018-12-12 13:18:54 +00:00
|
|
|
-Ddri-drivers=${DRI_DRIVERS:-[]} \
|
2018-12-12 13:52:20 +00:00
|
|
|
${GALLIUM_ST} \
|
2018-12-12 13:18:54 +00:00
|
|
|
-Dgallium-drivers=${GALLIUM_DRIVERS:-[]} \
|
|
|
|
-Dvulkan-drivers=${VULKAN_DRIVERS:-[]}
|
2018-12-12 17:43:07 +00:00
|
|
|
meson configure _build
|
2018-02-28 21:18:59 +00:00
|
|
|
ninja -C _build
|
2018-12-11 18:34:51 +00:00
|
|
|
ninja -C _build test
|
2017-09-27 18:37:28 +01:00
|
|
|
fi
|