2021-05-10 21:19:24 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
exclude:
|
|
|
|
- '.azure/azure-pipelines-android.yml'
|
|
|
|
- '.azure/azure-pipelines-vcpkg.yml'
|
|
|
|
- '.azure/azure-pipelines-win.yml'
|
|
|
|
- '.circleci/config.yml'
|
|
|
|
- '.github/workflows/linux.yml'
|
|
|
|
- '.github/workflows/sonarcloud.yml'
|
|
|
|
- '.cirrus.yml'
|
|
|
|
- 'README.md'
|
2019-10-21 10:44:49 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: macOS
|
|
|
|
pool:
|
|
|
|
vmImage: 'macOS-10.14'
|
2020-03-05 15:58:03 +00:00
|
|
|
# recommended by https://github.com/Homebrew/brew/issues/2491#issuecomment-294207661
|
2021-02-07 12:46:02 +00:00
|
|
|
# brew update || brew update
|
|
|
|
# brew upgrade $PACKAGES
|
2019-10-21 10:44:49 +00:00
|
|
|
steps:
|
|
|
|
- script: |
|
2021-02-07 12:46:02 +00:00
|
|
|
PACKAGES="glib gobject-introspection libsndfile pkg-config jack dbus-glib pulseaudio portaudio sdl2"
|
|
|
|
brew install $PACKAGES
|
2019-10-21 10:44:49 +00:00
|
|
|
displayName: 'Prerequisites'
|
|
|
|
- script: |
|
|
|
|
mkdir build && cd build
|
|
|
|
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
|
2020-02-02 14:45:44 +00:00
|
|
|
cmake -Werror=dev -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 ..
|
2021-02-07 12:46:02 +00:00
|
|
|
make -j`nproc`
|
2019-10-21 10:44:49 +00:00
|
|
|
displayName: 'Compile fluidsynth'
|
|
|
|
- script: |
|
|
|
|
cd build || exit -1
|
2021-02-07 12:46:02 +00:00
|
|
|
make -j`nproc` check || exit -1
|
2019-10-21 10:44:49 +00:00
|
|
|
displayName: 'Execute Unittests'
|