2019-05-29 23:59:36 +08:00
|
|
|
parameters:
|
|
|
|
runTestsName: ''
|
|
|
|
runTestsParameters: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
export MYSQL_TEST_USER=root
|
|
|
|
export MYSQL_TEST_PASSWD=root
|
|
|
|
export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
|
|
|
|
export PDO_MYSQL_TEST_USER=root
|
|
|
|
export PDO_MYSQL_TEST_PASS=root
|
2021-01-12 10:46:41 +08:00
|
|
|
export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
|
|
|
|
export PDO_DBLIB_TEST_USER="pdo_test"
|
|
|
|
export PDO_DBLIB_TEST_PASS="password"
|
2019-05-29 23:59:36 +08:00
|
|
|
export TEST_PHP_JUNIT=junit.xml
|
|
|
|
export REPORT_EXIT_STATUS=no
|
|
|
|
export SKIP_IO_CAPTURE_TESTS=1
|
2020-05-15 16:21:59 +08:00
|
|
|
export MSAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer
|
2019-05-29 23:59:36 +08:00
|
|
|
rm -rf junit.xml | true
|
|
|
|
php run-tests.php -P -q \
|
|
|
|
-j$(/usr/bin/nproc) \
|
|
|
|
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
|
|
|
|
--offline \
|
2020-05-22 20:09:20 +08:00
|
|
|
--show-diff \
|
2019-05-29 23:59:36 +08:00
|
|
|
--show-slow 1000 \
|
|
|
|
--set-timeout 120 \
|
|
|
|
${{ parameters.runTestsParameters }}
|
|
|
|
displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
|
2019-06-04 14:23:43 +08:00
|
|
|
condition: or(succeeded(), failed())
|
2019-05-29 23:59:36 +08:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'JUnit'
|
|
|
|
testResultsFiles: junit.xml
|
|
|
|
testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
|
2019-06-04 14:23:43 +08:00
|
|
|
condition: or(succeeded(), failed())
|