1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00

Re-enable regression tests

This commit is contained in:
Daniil Gentili 2021-12-03 19:47:49 +01:00
parent 59c73f9584
commit 9b782566f7
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 11 additions and 7 deletions

View File

@ -112,16 +112,16 @@ rm -f madeline.phar testing.madeline*
echo "Testing with previous version..."
export ACTIONS_FORCE_PREVIOUS=1
#runTest
#k
runTest
k
echo "Testing with new version (upgrade)..."
php tools/makephar.php $madelinePath/../phar "madeline$php$branch.phar" "$COMMIT-$php"
cp "madeline$php$branch.phar" "madeline-$php.phar"
export ACTIONS_PHAR=1
#reset
#runTestSimple
#k
reset
runTestSimple
k
echo "Testing with new version (restart)"
reset

View File

@ -73,7 +73,11 @@ function ___install_madeline()
if (\strpos($name, 'phabel/transpiler') === 0) {
$name = \explode('/', $name, 3)[2];
}
$packages[$name] = $dep['version_normalized'];
$version = $dep['version_normalized'];
if ($name === 'danog/madelineproto' && \substr($version, 0, 2) === '90') {
$version = \substr($version, 2);
}
$packages[$name] = $version;
}
return $packages;
};
@ -113,7 +117,7 @@ function ___install_madeline()
'Content-Type: application/json',
\sprintf(
'User-Agent: Composer/%s (%s; %s; %s; %s%s)',
'Madeline v7',
'MProto v7',
\function_exists('php_uname') ? @\php_uname('s') : 'Unknown',
\function_exists('php_uname') ? @\php_uname('r') : 'Unknown',
$phpVersion,