summaryrefslogtreecommitdiff
path: root/azure/macos/test.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure/macos/test.yml')
-rw-r--r--azure/macos/test.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/azure/macos/test.yml b/azure/macos/test.yml
new file mode 100644
index 0000000000..edaa68fa6d
--- /dev/null
+++ b/azure/macos/test.yml
@@ -0,0 +1,27 @@
+parameters:
+ runTestsName: ''
+ runTestsParameters: ''
+
+steps:
+ - script: |
+ export TEST_PHP_JUNIT=junit.xml
+ export REPORT_EXIT_STATUS=no
+ export SKIP_IO_CAPTURE_TESTS=1
+ rm -rf junit.xml | true
+ /usr/local/bin/php run-tests.php -P -q \
+ -j$(sysctl -n hw.ncpu) \
+ -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
+ --offline \
+ --show-slow 1000 \
+ --set-timeout 120 \
+ ${{ parameters.runTestsParameters }}
+ displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
+ condition: or(succeeded(), failed())
+ - task: PublishTestResults@2
+ inputs:
+ testResultsFormat: 'JUnit'
+ testResultsFiles: junit.xml
+ testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
+ failTaskOnFailedTests: false
+ displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
+ condition: or(succeeded(), failed())