1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

test github releases

This commit is contained in:
Akolzin Dmitry 2020-03-18 11:16:35 +03:00
parent 2aa28ecd10
commit b17b44de15
5 changed files with 16 additions and 4 deletions

View file

@ -40,7 +40,7 @@ create_db:
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
mysqladmin create $(DB_BITRIX_NAME) --user=$(DB_BITRIX_LOGIN) --password=$(DB_BITRIX_PASS)
build_release: build_release_dir
build_release:
bash bin/build $(VERSION) $(ROOT_DIR)/release/
build_release_dir: build_diff_file

View file

@ -29,5 +29,12 @@ while (($buffer = fgets($handle)) !== false) {
$modifiedFiles[] = $modifiedFile;
}
$builder = new ReleaseBuilder($modifiedFiles, $arModuleVersion['VERSION']);
$builder->build();
try {
$builder = new ReleaseBuilder($modifiedFiles, $arModuleVersion['VERSION']);
$builder->build();
} catch(\Exception $exception) {
print($exception->getMessage());
exit(255);
}
exit(0);

View file

@ -46,6 +46,10 @@ class ReleaseBuilder
$modifiedFiles[] = $this->getRealFilename($file->getFilename());
}
if (empty($modifiedFiles)) {
throw new \LogicException('Not found modified files for release');
}
$this->createDirNodes($modifiedFiles);
$this->copyFiles($modifiedFiles);
}

View file

@ -6,6 +6,7 @@
* Class name: intaro_retailcrm
*/
global $MESS;
IncludeModuleLangFile(__FILE__);
if (class_exists('intaro_retailcrm'))
return;

View file

@ -1,5 +1,5 @@
<?
$arModuleVersion = array(
"VERSION" => "5.2.7",
"VERSION" => "5.2.8",
"VERSION_DATE" => "2020-01-09 12:02:00"
);