test github releases
This commit is contained in:
parent
2aa28ecd10
commit
b17b44de15
5 changed files with 16 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
* Class name: intaro_retailcrm
|
||||
*/
|
||||
global $MESS;
|
||||
|
||||
IncludeModuleLangFile(__FILE__);
|
||||
if (class_exists('intaro_retailcrm'))
|
||||
return;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?
|
||||
$arModuleVersion = array(
|
||||
"VERSION" => "5.2.7",
|
||||
"VERSION" => "5.2.8",
|
||||
"VERSION_DATE" => "2020-01-09 12:02:00"
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue