xref: /PHP-7.4/azure/test.yml (revision 6ad74648)
1parameters:
2  runTestsName: ''
3  runTestsParameters: ''
4
5steps:
6  - script: |
7      export MYSQL_TEST_USER=root
8      export MYSQL_TEST_PASSWD=root
9      export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
10      export PDO_MYSQL_TEST_USER=root
11      export PDO_MYSQL_TEST_PASS=root
12      export TEST_PHP_JUNIT=junit.xml
13      export REPORT_EXIT_STATUS=no
14      export SKIP_IO_CAPTURE_TESTS=1
15      export MSAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer
16      rm -rf junit.xml | true
17      php run-tests.php -P -q \
18          -j$(/usr/bin/nproc) \
19          -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
20          --offline \
21          --show-diff \
22          --show-slow 1000 \
23          --set-timeout 120 \
24          ${{ parameters.runTestsParameters }}
25    displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
26    condition: or(succeeded(), failed())
27  - task: PublishTestResults@2
28    inputs:
29      testResultsFormat: 'JUnit'
30      testResultsFiles: junit.xml
31      testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
32      failTaskOnFailedTests: true
33    displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
34    condition: or(succeeded(), failed())
35