mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 07:10:09 +01:00
travis: add MacOS Scons build
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
8f1cdac793
commit
64ffc289be
1 changed files with 31 additions and 6 deletions
37
.travis.yml
37
.travis.yml
|
|
@ -9,8 +9,22 @@ env:
|
||||||
global:
|
global:
|
||||||
- PKG_CONFIG_PATH=""
|
- PKG_CONFIG_PATH=""
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- env:
|
||||||
|
- BUILD=meson
|
||||||
|
- env:
|
||||||
|
- BUILD=scons
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext
|
- HOMEBREW_NO_AUTO_UPDATE=1 brew install expat gettext
|
||||||
|
- if test "x$BUILD" = xmeson; then
|
||||||
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja;
|
||||||
|
fi
|
||||||
|
- if test "x$BUILD" = xscons; then
|
||||||
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install python2 scons;
|
||||||
|
fi
|
||||||
|
|
||||||
# Set PATH for homebrew pip3 installs
|
# Set PATH for homebrew pip3 installs
|
||||||
- PATH="$HOME/Library/Python/3.6/bin:${PATH}"
|
- PATH="$HOME/Library/Python/3.6/bin:${PATH}"
|
||||||
# Set PKG_CONFIG_PATH for keg-only expat
|
# Set PKG_CONFIG_PATH for keg-only expat
|
||||||
|
|
@ -28,10 +42,21 @@ before_install:
|
||||||
- PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
- PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip3 install --user meson
|
- if test "x$BUILD" = xmeson; then
|
||||||
- pip3 install --user mako
|
pip3 install --user meson;
|
||||||
|
pip3 install --user mako;
|
||||||
|
fi
|
||||||
|
- if test "x$BUILD" = xscons; then
|
||||||
|
pip2 install --user mako;
|
||||||
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- meson _build -Dbuild-tests=true
|
- if test "x$BUILD" = xmeson; then
|
||||||
- ninja -C _build
|
meson _build -Dbuild-tests=true;
|
||||||
- ninja -C _build test
|
ninja -C _build;
|
||||||
|
ninja -C _build test;
|
||||||
|
fi
|
||||||
|
- if test "x$BUILD" = xscons; then
|
||||||
|
scons;
|
||||||
|
scons check;
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue