xenocara/lib/mesa/.travis.yml

65 lines
1.8 KiB
YAML
Raw Normal View History

2020-01-21 19:07:15 -07:00
language: c
os: osx
cache:
ccache: true
env:
global:
- PKG_CONFIG_PATH=""
matrix:
include:
- env:
- BUILD=meson
- env:
- BUILD=scons
before_install:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install expat gettext
- if test "x$BUILD" = xmeson; then
2020-08-25 23:26:37 -06:00
HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja;
2020-01-21 19:07:15 -07:00
fi
- if test "x$BUILD" = xscons; then
2020-08-25 23:26:37 -06:00
HOMEBREW_NO_AUTO_UPDATE=1 brew install scons;
2020-01-21 19:07:15 -07:00
fi
# Set PATH for homebrew pip3 installs
2020-08-25 23:26:37 -06:00
- PYTHON_VERSION=$(python3 -V | awk '{print $2}' | cut -d. -f1-2)
- PATH="$HOME/Library/Python/$PYTHON_VERSION/bin:${PATH}"
2020-01-21 19:07:15 -07:00
# 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
- PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
install:
- if test "x$BUILD" = xmeson; then
pip3 install --user meson;
pip3 install --user mako;
fi
- if test "x$BUILD" = xscons; then
pip2 install --user mako;
fi
script:
- if test "x$BUILD" = xmeson; then
meson _build -Dbuild-tests=true;
ninja -C _build || travis_terminate 1;
ninja -C _build test || travis_terminate 1;
2020-08-25 23:26:37 -06:00
ninja -C _build install || travis_terminate 1;
2020-01-21 19:07:15 -07:00
fi
- if test "x$BUILD" = xscons; then
2020-08-25 23:26:37 -06:00
scons force_scons=1 || travis_terminate 1;
scons force_scons=1 check || travis_terminate 1;
2020-01-21 19:07:15 -07:00
fi