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 rm -rf junit.xml | true 16 php run-tests.php -P -q \ 17 -j$(/usr/bin/nproc) \ 18 -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \ 19 --offline \ 20 --show-diff \ 21 --show-slow 1000 \ 22 --set-timeout 120 \ 23 ${{ parameters.runTestsParameters }} 24 displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}' 25 condition: or(succeeded(), failed()) 26 - task: PublishTestResults@2 27 inputs: 28 testResultsFormat: 'JUnit' 29 testResultsFiles: junit.xml 30 testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}' 31 failTaskOnFailedTests: true 32 displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results' 33 condition: or(succeeded(), failed()) 34