--- /dev/null
+---
+steps:
+ - bash: |
+ brew install meson doxygen bison
+ brew link bison --force
+ displayName: 'Dependencies (macOS)'
+ env:
+ HOMEBREW_NO_AUTO_UPDATE: 1
+ HOMEBREW_NO_INSTALL_CLEANUP: 1
---
parameters:
options: ""
+ wrapper: ""
workdir: "meson-build"
steps:
- - bash: meson setup '${{ parameters.workdir }}' ${{ parameters.options }}
+ - bash: |
+ if [[ -x /usr/local/opt/bison/bin/bison ]] ; then
+ export PATH="/usr/local/opt/bison/bin:${PATH}"
+ fi
+ meson setup '${{ parameters.workdir }}' ${{ parameters.options }}
displayName: 'Configuration (Meson)'
- bash: ninja
displayName: 'Build (Meson)'
env:
TERM: dumb
- bash: |
- meson test --print-errorlogs \
- --wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99'
+ meson test --print-errorlogs --wrap='${{ parameters.wrapper }}'
displayName: 'Tests (Meson)'
workingDirectory: ${{ parameters.workdir }}
- bash: |
- template: .azure-pipelines/steps/meson.yml
parameters:
options: -Denable-wayland=false
+ wrapper: valgrind --leak-check=full --track-origins=yes --error-exitcode=99
- job: 'Autotools'
dependsOn: []
pool:
steps:
- template: .azure-pipelines/steps/dependencies-linux.yml
- template: .azure-pipelines/steps/autotools.yml
+ - job: 'macOS'
+ dependsOn: []
+ pool:
+ vmImage: 'macos-10.13'
+ steps:
+ - template: .azure-pipelines/steps/dependencies-macos.yml
+ - template: .azure-pipelines/steps/meson.yml
+ parameters:
+ options: -Denable-wayland=false -Denable-x11=false