summaryrefslogtreecommitdiff
path: root/.azure-pipelines
diff options
context:
space:
mode:
authorAdrian Perez de Castro <aperez@igalia.com>2019-08-06 16:55:41 +0300
committerRan Benita <ran234@gmail.com>2019-08-09 23:01:27 +0300
commit510cbdd243e5402f8970a6e540fc56adad37cbca (patch)
tree4454d2c343948bc72598b78f00b297fd847c15f4 /.azure-pipelines
parentaf22f9dc2217692b612786f9f24eba44976909db (diff)
downloadxorg-lib-libxkbcommon-510cbdd243e5402f8970a6e540fc56adad37cbca.tar.gz
CI: Enable a macOS job
Diffstat (limited to '.azure-pipelines')
-rw-r--r--.azure-pipelines/steps/dependencies-macos.yml9
-rw-r--r--.azure-pipelines/steps/meson.yml10
2 files changed, 16 insertions, 3 deletions
diff --git a/.azure-pipelines/steps/dependencies-macos.yml b/.azure-pipelines/steps/dependencies-macos.yml
new file mode 100644
index 0000000..a7efc4a
--- /dev/null
+++ b/.azure-pipelines/steps/dependencies-macos.yml
@@ -0,0 +1,9 @@
+---
+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
diff --git a/.azure-pipelines/steps/meson.yml b/.azure-pipelines/steps/meson.yml
index b2a44c5..bb25197 100644
--- a/.azure-pipelines/steps/meson.yml
+++ b/.azure-pipelines/steps/meson.yml
@@ -1,10 +1,15 @@
---
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)'
@@ -12,8 +17,7 @@ steps:
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: |