* Fix downgrade test stage

This commit is contained in:
qishiyao
2023-10-31 08:40:52 +08:00
parent 1f48fb7914
commit d52ea737ca
3 changed files with 5 additions and 3 deletions
@@ -21,6 +21,7 @@ pipeline {
// set to blank for auto-detect from ci.json
DOWNGRADE_ENABLED = "false"
// DOWNGRADE_VERSIONS = "7.2"
DOWNGRADE_VERSIONS = "7.2,7.1,7.0,5.4"
}
@@ -119,15 +120,14 @@ pipeline {
}
container('package') {
sh 'mkdir /tmp/publishHtml'
sh 'test -f ${ZENTAO_RELEASE_PATH}/downgradeReport.html && cp ${ZENTAO_RELEASE_PATH}/downgradeReport.html /tmp/publishHtml/ || echo "No syntax error"'
sh 'test -f ${ZENTAO_RELEASE_PATH}/downgradeReport.html && mkdir ./report && cp ${ZENTAO_RELEASE_PATH}/downgradeReport.html ./report && cat ./report/downgradeReport.html || echo "No syntax error"'
}
publishHTML([
allowMissing: true,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: '/tmp/publishHtml',
reportDir: './report',
reportFiles: 'downgradeReport.html',
reportName: 'DowngradeReport'
])
+1
View File
@@ -360,6 +360,7 @@ process() {
}
postProcess() {
set -x
if [[ "$statisticSyntax" == "true" ]];then
foundSyntaxErr="false"
for ver in $(jq -r '.versions | keys[]' "$statisticDataFile")
+1
View File
@@ -14,6 +14,7 @@ $cacheDir = $cacheDir ?: '/tmp/rector_cached_files';
return static function (RectorConfig $rectorConfig) use ($version,$cacheDir): void {
$rectorConfig->skip([
'test/*',
'roadrunner-cli/src/*',
]);
$rectorConfig->phpVersion(constant(PhpVersion::class . '::PHP_' . $version));
$rectorConfig->sets([constant(DowngradeLevelSetList::class . '::DOWN_TO_PHP_' . $version)]);