blob: 6214132289c4fd52d3e53953015f9a1d632d6c9d [file] [log] [blame]
Eric Anholt1c0ac192015-11-23 16:25:29 -08001language: c
2
Eric Engestrom6e5728e2019-05-09 13:28:41 +01003os: osx
Eric Anholt1c0ac192015-11-23 16:25:29 -08004
5cache:
Emil Velikov6431b982017-04-06 14:02:38 +01006 ccache: true
Eric Anholt1c0ac192015-11-23 16:25:29 -08007
Eric Engestrom6e0effb2019-02-07 11:36:19 +00008env:
9 global:
Eric Engestrom6e5728e2019-05-09 13:28:41 +010010 - PKG_CONFIG_PATH=""
Jon Turneyb3a1d952018-01-18 13:05:06 +000011
12before_install:
Eric Engestrom6e5728e2019-05-09 13:28:41 +010013 - HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext
14 # Set PATH for homebrew pip3 installs
15 - PATH="$HOME/Library/Python/3.6/bin:${PATH}"
16 # Set PKG_CONFIG_PATH for keg-only expat
17 - PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}"
18 # Set PATH for keg-only gettext
19 - PATH="/usr/local/opt/gettext/bin:${PATH}"
Jon Turneyb3a1d952018-01-18 13:05:06 +000020
Eric Engestrom6e5728e2019-05-09 13:28:41 +010021 # Install xquartz for prereqs ...
22 - XQUARTZ_VERSION="2.7.11"
23 - wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg
24 - hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg
25 - sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target /
26 - hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION}
27 # ... and set paths
28 - PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
Eric Anholt1c0ac192015-11-23 16:25:29 -080029
30install:
Eric Engestrom6e5728e2019-05-09 13:28:41 +010031 - pip3 install --user meson
32 - pip3 install --user mako
Eric Engestromb3aa3702019-03-08 11:16:25 +000033
Eric Anholt1c0ac192015-11-23 16:25:29 -080034script:
Eric Engestrom6e5728e2019-05-09 13:28:41 +010035 - meson _build
36 -Dbuild-tests=true
37 -Dplatforms=x11
38 -Dgallium-drivers=swrast
39 - ninja -C _build
40 - ninja -C _build test