Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 1 | language: c |
| 2 | |
Eric Engestrom | 6e5728e | 2019-05-09 13:28:41 +0100 | [diff] [blame] | 3 | os: osx |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 4 | |
| 5 | cache: |
Emil Velikov | 6431b98 | 2017-04-06 14:02:38 +0100 | [diff] [blame] | 6 | ccache: true |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 7 | |
Eric Engestrom | 6e0effb | 2019-02-07 11:36:19 +0000 | [diff] [blame] | 8 | env: |
| 9 | global: |
Eric Engestrom | 6e5728e | 2019-05-09 13:28:41 +0100 | [diff] [blame] | 10 | - PKG_CONFIG_PATH="" |
Jon Turney | b3a1d95 | 2018-01-18 13:05:06 +0000 | [diff] [blame] | 11 | |
| 12 | before_install: |
Eric Engestrom | 6e5728e | 2019-05-09 13:28:41 +0100 | [diff] [blame] | 13 | - 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 Turney | b3a1d95 | 2018-01-18 13:05:06 +0000 | [diff] [blame] | 20 | |
Eric Engestrom | 6e5728e | 2019-05-09 13:28:41 +0100 | [diff] [blame] | 21 | # 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 Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 29 | |
| 30 | install: |
Eric Engestrom | 6e5728e | 2019-05-09 13:28:41 +0100 | [diff] [blame] | 31 | - pip3 install --user meson |
| 32 | - pip3 install --user mako |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame] | 33 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 34 | script: |
Eric Engestrom | 6e5728e | 2019-05-09 13:28:41 +0100 | [diff] [blame] | 35 | - meson _build |
| 36 | -Dbuild-tests=true |
| 37 | -Dplatforms=x11 |
| 38 | -Dgallium-drivers=swrast |
| 39 | - ninja -C _build |
| 40 | - ninja -C _build test |