- - LABEL="scons SWR"
- - BUILD=scons
- - SCONSFLAGS="-j4"
- - SCONS_TARGET="swr=1"
- - LLVM_VERSION=3.9
- - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- # Keep it symmetrical to the make build. There's no actual SWR, yet.
- - SCONS_CHECK_COMMAND="true"
- - OVERRIDE_CC="gcc-4.8"
- - OVERRIDE_CXX="g++-4.8"
- addons:
- apt:
- sources:
- - llvm-toolchain-trusty-3.9
- packages:
- - scons
- # LLVM packaging is broken and misses these dependencies
- - libedit-dev
- # From sources above
- - llvm-3.9-dev
- # Common
- - xz-utils
- - x11proto-xf86vidmode-dev
- - libexpat1-dev
- - libx11-xcb-dev
- - libelf-dev
+ - LABEL="macOS make"
+ - BUILD=make
+ - DRI_LOADERS="--with-platforms=x11 --disable-egl"
+ os: osx
+ - env:
+ - LABEL="macOS meson"
+ - BUILD=meson
+ - DRI_LOADERS="-Dplatforms=x11"
+ - GALLIUM_DRIVERS=swrast
+ os: osx
+
+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