parent
6713bc9245
commit
d14a078804
14
Makefile
14
Makefile
@ -40,14 +40,14 @@ create_db:
|
|||||||
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
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)
|
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/
|
ifneq ($(LAST_TAG),$(CURRENT_VERSION))
|
||||||
|
|
||||||
build_release_dir: build_diff_file
|
|
||||||
php bin/build-release
|
|
||||||
|
|
||||||
build_diff_file:
|
|
||||||
git diff --name-status $(LAST_TAG) HEAD > $(ROOT_DIR)/release/diff
|
git diff --name-status $(LAST_TAG) HEAD > $(ROOT_DIR)/release/diff
|
||||||
|
php bin/build-release
|
||||||
|
bash bin/build $(VERSION) $(ROOT_DIR)/release/
|
||||||
|
else
|
||||||
|
@exit 0
|
||||||
|
endif
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
@rm -rf $(ROOT_DIR)/release/$(VERSION)
|
@rm -rf $(ROOT_DIR)/release/$(VERSION)
|
||||||
|
@ -23,4 +23,4 @@ CModule::AddAutoloadClasses(
|
|||||||
'RetailCrm\Exception\InvalidJsonException' => 'classes/general/Exception/InvalidJsonException.php',
|
'RetailCrm\Exception\InvalidJsonException' => 'classes/general/Exception/InvalidJsonException.php',
|
||||||
'RetailCrm\Exception\CurlException' => 'classes/general/Exception/CurlException.php',
|
'RetailCrm\Exception\CurlException' => 'classes/general/Exception/CurlException.php',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
stopOnFailure="false"
|
stopOnFailure="false"
|
||||||
>
|
>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Retailcrm Bitrix module Test Suite">
|
<testsuite name="retailcrm Bitrix module Test Suite">
|
||||||
<directory suffix="Test.php">tests</directory>
|
<directory suffix="Test.php">tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
Loading…
Reference in New Issue
Block a user