2015-11-24 08:25:29 +08:00
|
|
|
language: c
|
|
|
|
|
2019-05-09 20:28:41 +08:00
|
|
|
os: osx
|
2015-11-24 08:25:29 +08:00
|
|
|
|
|
|
|
cache:
|
2017-04-06 21:02:38 +08:00
|
|
|
ccache: true
|
2015-11-24 08:25:29 +08:00
|
|
|
|
2019-02-07 19:36:19 +08:00
|
|
|
env:
|
|
|
|
global:
|
2019-05-09 20:28:41 +08:00
|
|
|
- PKG_CONFIG_PATH=""
|
2018-01-18 21:05:06 +08:00
|
|
|
|
|
|
|
before_install:
|
2019-05-09 20:28:41 +08:00
|
|
|
- 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
|
|
|
|
- PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
2015-11-24 08:25:29 +08:00
|
|
|
|
|
|
|
install:
|
2019-05-09 20:28:41 +08:00
|
|
|
- pip3 install --user meson
|
|
|
|
- pip3 install --user mako
|
2019-03-08 19:16:25 +08:00
|
|
|
|
2015-11-24 08:25:29 +08:00
|
|
|
script:
|
2019-07-30 23:17:15 +08:00
|
|
|
- meson _build -Dbuild-tests=true
|
2019-05-09 20:28:41 +08:00
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build test
|