release 1.6 (#1277)

This commit is contained in:
Kevin Papst
2019-11-24 15:29:01 +01:00
committed by GitHub
parent 936ab05882
commit 724eb9c658
23 changed files with 1093 additions and 1031 deletions

View File

@@ -119,9 +119,7 @@ class CreateReleaseCommand extends Command
$commands = [
'Clone repository' => $gitCmd . ' ' . $tmpDir,
'Install composer dependencies' => sprintf('cd %s && %s composer install --no-dev --optimize-autoloader', $tmpDir, $prefix),
'Create database' => sprintf('cd %s && %s bin/console doctrine:database:create -n', $tmpDir, $prefix),
'Create tables' => sprintf('cd %s && %s bin/console doctrine:schema:create -n', $tmpDir, $prefix),
'Add all migrations' => sprintf('cd %s && %s bin/console doctrine:migrations:version --add --all -n', $tmpDir, $prefix),
'Create database' => sprintf('cd %s && %s bin/console kimai:install -n', $tmpDir, $prefix),
];
$filesToDelete = [
@@ -137,7 +135,6 @@ class CreateReleaseCommand extends Command
'phpunit.xml.dist',
'webpack.config.js',
'assets/',
'bin/',
'tests/',
'var/cache/*',
'var/data/kimai_test.sqlite',
@@ -150,25 +147,26 @@ class CreateReleaseCommand extends Command
}
$commands = array_merge($commands, [
'Create tar' => 'cd ' . $tmpDir . ' && tar -czf ' . $directory . '/' . $tar . ' .',
'Create zip' => 'cd ' . $tmpDir . ' && zip -r ' . $directory . '/' . $zip . ' .',
// 'Create tar' => 'cd ' . $tmpDir . ' && tar -czf ' . $directory . '/' . $tar . ' .',
'Create release zip' => 'cd ' . $tmpDir . ' && zip -q -r ' . $directory . '/' . $zip . ' .',
'Remove tmp directory' => 'rm -rf ' . $tmpDir,
]);
$exitCode = 0;
foreach ($commands as $title => $command) {
$io->success($title);
passthru($command, $exitCode);
if ($exitCode !== 0) {
$io->error('Failed with command: ' . $command);
return -1;
} else {
$io->success($title);
}
}
$io->success(
'New release packages available at: ' . PHP_EOL .
$directory . '/' . $tar . PHP_EOL .
'New release package available at: ' . PHP_EOL .
// $directory . '/' . $tar . PHP_EOL .
$directory . '/' . $zip
);