summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-01-18 13:05:06 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-02-02 15:28:52 +0000
commitb3a1d9588eaa486a01c3a2964d69540a4bf45818 (patch)
tree5f1eee28d3030834a2512b6a0cd41f3adf7d951d /.travis.yml
parent4701379d967f8c42fc8cffa0e1c80dc9074bb0d5 (diff)
travis: add osx autotools build
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index b3dbb96468..5094208377 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -396,6 +396,36 @@ matrix:
- libexpat1-dev
- libx11-xcb-dev
- libelf-dev
+ - env:
+ - LABEL="macOS make"
+ - BUILD=make
+ - MAKEFLAGS="-j4"
+ - MAKE_CHECK_COMMAND="make check"
+ - DRI_LOADERS="--with-platforms=x11 --disable-egl"
+ 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
install:
- pip2 install --user mako