1
0
mirror of synced 2025-01-31 07:11:42 +03:00

Deploy script fix (#62)

* Deploy fix
* Bootstrap update
This commit is contained in:
Akolzin Dmitry 2018-04-27 16:28:28 +03:00 committed by Alex Lushpai
parent 56bc008af4
commit 1b8328b941
2 changed files with 6 additions and 3 deletions

View File

@ -8,11 +8,14 @@ svn_clone:
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
prepare: /tmp/svn_plugin_dir
svn copy /tmp/svn_plugin_dir/trunk /tmp/svn_plugin_dir/tags/$(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
svn delete /tmp/svn_plugin_dir/trunk/*
rm -rf /tmp/svn_plugin_dir/trunk/*
cp -R $(TRAVIS_BUILD_DIR)/src/* /tmp/svn_plugin_dir/trunk
svn copy /tmp/svn_plugin_dir/trunk /tmp/svn_plugin_dir/tags/$(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
svn_commit: /tmp/svn_plugin_dir/tags
svn add /tmp/svn_plugin_dir/trunk/* --force
svn add /tmp/svn_plugin_dir/tags/$(VERSION)/* --force
svn ci /tmp/svn_plugin_dir -m $(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
remove_dir:

View File

@ -9,7 +9,7 @@ if (!$_tests_dir) {
require_once $_tests_dir . '/includes/functions.php';
function _manually_load_plugin() {
$plugin_dir = dirname( dirname( dirname( __FILE__ ) ) ) . '/';
$plugin_dir = dirname(dirname(dirname(__FILE__))) . '/';
require $plugin_dir . 'src/include/class-wc-retailcrm-orders.php';
require $plugin_dir . 'src/include/class-wc-retailcrm-customers.php';
@ -21,7 +21,7 @@ tests_add_filter('muplugins_loaded', '_manually_load_plugin');
require '/tmp/woocommerce/tests/bootstrap.php';
$plugin_dir = dirname( dirname( dirname( __FILE__ ) ) ) . '/';
$plugin_dir = dirname(dirname(dirname(__FILE__))) . '/';
// helpers
require $plugin_dir . 'tests/helpers/class-wc-retailcrm-response-helper.php';
require $plugin_dir . 'tests/helpers/class-wc-retailcrm-test-case-helper.php';