xref: /PHP-7.4/azure/macos/test.yml (revision 6ad74648)
1parameters:
2  runTestsName: ''
3  runTestsParameters: ''
4
5steps:
6  - script: |
7      export TEST_PHP_JUNIT=junit.xml
8      export REPORT_EXIT_STATUS=no
9      export SKIP_IO_CAPTURE_TESTS=1
10      export CI_NO_IPV6=1
11      rm -rf junit.xml | true
12      /usr/local/bin/php run-tests.php -P -q \
13          -j$(sysctl -n hw.ncpu) \
14          -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
15          --offline \
16          --show-diff \
17          --show-slow 1000 \
18          --set-timeout 120 \
19          ${{ parameters.runTestsParameters }}
20    displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
21    condition: or(succeeded(), failed())
22  - task: PublishTestResults@2
23    inputs:
24      testResultsFormat: 'JUnit'
25      testResultsFiles: junit.xml
26      testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
27      failTaskOnFailedTests: true
28    displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
29    condition: or(succeeded(), failed())
30