2015-11-24 00:25:29 +00:00
|
|
|
language: c
|
|
|
|
|
2019-05-09 12:28:41 +00:00
|
|
|
os: osx
|
2015-11-24 00:25:29 +00:00
|
|
|
|
|
|
|
cache:
|
2017-04-06 13:02:38 +00:00
|
|
|
ccache: true
|
2015-11-24 00:25:29 +00:00
|
|
|
|
2019-02-07 11:36:19 +00:00
|
|
|
env:
|
|
|
|
global:
|
2019-05-09 12:28:41 +00:00
|
|
|
- PKG_CONFIG_PATH=""
|
2018-01-18 13:05:06 +00:00
|
|
|
|
2019-07-30 15:18:10 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env:
|
|
|
|
- BUILD=meson
|
|
|
|
|
2018-01-18 13:05:06 +00:00
|
|
|
before_install:
|
2019-07-30 15:18:10 +00:00
|
|
|
- HOMEBREW_NO_AUTO_UPDATE=1 brew install expat gettext
|
|
|
|
- if test "x$BUILD" = xmeson; then
|
2019-10-18 14:03:43 +00:00
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja;
|
2019-07-30 15:18:10 +00:00
|
|
|
fi
|
|
|
|
|
2019-05-09 12:28:41 +00:00
|
|
|
# Set PATH for homebrew pip3 installs
|
2019-12-21 19:28:07 +00:00
|
|
|
- PYTHON_VERSION=$(python3 -V | awk '{print $2}' | cut -d. -f1-2)
|
|
|
|
- PATH="$HOME/Library/Python/$PYTHON_VERSION/bin:${PATH}"
|
2019-05-09 12:28:41 +00:00
|
|
|
# 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"
|
2021-05-27 04:35:17 +00:00
|
|
|
- wget -nv https://github.com/XQuartz/XQuartz/releases/download/XQuartz-${XQUARTZ_VERSION}/XQuartz-${XQUARTZ_VERSION}.dmg
|
2019-05-09 12:28:41 +00:00
|
|
|
- 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 00:25:29 +00:00
|
|
|
|
|
|
|
install:
|
2019-07-30 15:18:10 +00:00
|
|
|
- if test "x$BUILD" = xmeson; then
|
|
|
|
pip3 install --user meson;
|
|
|
|
pip3 install --user mako;
|
|
|
|
fi
|
2019-03-08 11:16:25 +00:00
|
|
|
|
2015-11-24 00:25:29 +00:00
|
|
|
script:
|
2019-07-30 15:18:10 +00:00
|
|
|
- if test "x$BUILD" = xmeson; then
|
|
|
|
meson _build -Dbuild-tests=true;
|
2019-08-30 06:15:29 +00:00
|
|
|
ninja -C _build || travis_terminate 1;
|
|
|
|
ninja -C _build test || travis_terminate 1;
|
2019-10-18 14:05:21 +00:00
|
|
|
ninja -C _build install || travis_terminate 1;
|
2019-07-30 15:18:10 +00:00
|
|
|
fi
|