Make the test environment compatible with the premium plugin
[PREMIUM-230]
This commit is contained in:
@ -190,13 +190,13 @@ if [[ $MULTISITE == "1" ]]; then
|
|||||||
wp plugin activate mailpoet/mailpoet.php --url=$HTTP_HOST/$WP_TEST_MULTISITE_SLUG
|
wp plugin activate mailpoet/mailpoet.php --url=$HTTP_HOST/$WP_TEST_MULTISITE_SLUG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $CIRCLE_JOB == *"_with_premium_"* ]]; then
|
if [[ $CIRCLE_JOB == *"_with_premium_"* || $WITH_PREMIUM == "1" ]]; then
|
||||||
# Copy MailPoet Premium to plugin path
|
# Copy MailPoet Premium to plugin path
|
||||||
cp -r -n /project/mailpoet-premium /wp-core/wp-content/plugins/mailpoet-premium
|
# cp -r -n /project/mailpoet-premium /wp-core/wp-content/plugins/mailpoet-premium
|
||||||
chown www-data:www-data /wp-core/wp-content/plugins/mailpoet-premium/generated
|
chown www-data:www-data /wp-core/wp-content/plugins/mailpoet-premium/generated
|
||||||
chmod -R 755 /wp-core/wp-content/plugins/mailpoet-premium/generated
|
chmod -R 755 /wp-core/wp-content/plugins/mailpoet-premium/generated
|
||||||
# Activate MailPoet Premium
|
# Activate MailPoet Premium
|
||||||
wp plugin activate mailpoet-premium || { echo "MailPoet Premium plugin activation failed!" ; exit 1; }
|
wp plugin activate mailpoet-premium/mailpoet-premium.php || { echo "MailPoet Premium plugin activation failed!" ; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# WP installs translations into the `lang` folder, and it should be writable, this change has been added in WP 6.2
|
# WP installs translations into the `lang` folder, and it should be writable, this change has been added in WP 6.2
|
||||||
@ -218,8 +218,13 @@ mysql -u wordpress -pwordpress wordpress -h mysql -e "SELECT @@global.sql_mode"
|
|||||||
# print tables info
|
# print tables info
|
||||||
mysql -u wordpress -pwordpress wordpress -h mysql -e "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'wordpress'"
|
mysql -u wordpress -pwordpress wordpress -h mysql -e "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'wordpress'"
|
||||||
|
|
||||||
|
if [[ $WITH_PREMIUM == "1" ]]; then
|
||||||
|
cd /wp-core/wp-content/plugins/mailpoet-premium
|
||||||
|
else
|
||||||
cd /wp-core/wp-content/plugins/mailpoet
|
cd /wp-core/wp-content/plugins/mailpoet
|
||||||
/project/vendor/bin/codecept run $TEST_TYPE $@
|
fi
|
||||||
|
|
||||||
|
/wp-core/wp-content/plugins/mailpoet/vendor/bin/codecept run $TEST_TYPE $@ -vvv
|
||||||
exitcode=$?
|
exitcode=$?
|
||||||
|
|
||||||
exit $exitcode
|
exit $exitcode
|
||||||
|
@ -11,6 +11,7 @@ services:
|
|||||||
- ../../mailpoet:/project
|
- ../../mailpoet:/project
|
||||||
- ../../mailpoet:/wp-core/wp-content/plugins/mailpoet
|
- ../../mailpoet:/wp-core/wp-content/plugins/mailpoet
|
||||||
- ../../mailpoet-premium:/project/mailpoet-premium
|
- ../../mailpoet-premium:/project/mailpoet-premium
|
||||||
|
- ../../mailpoet-premium:/wp-core/wp-content/plugins/mailpoet-premium
|
||||||
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
|
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
|
||||||
- ../../dev/php.ini:/usr/local/etc/php/conf.d/php_user.ini
|
- ../../dev/php.ini:/usr/local/etc/php/conf.d/php_user.ini
|
||||||
- ../../dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
|
- ../../dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
|
||||||
@ -38,6 +39,7 @@ services:
|
|||||||
- ../../mailpoet:/project
|
- ../../mailpoet:/project
|
||||||
- ../../mailpoet:/wp-core/wp-content/plugins/mailpoet
|
- ../../mailpoet:/wp-core/wp-content/plugins/mailpoet
|
||||||
- ../../mailpoet-premium:/project/mailpoet-premium
|
- ../../mailpoet-premium:/project/mailpoet-premium
|
||||||
|
- ../../mailpoet-premium:/wp-core/wp-content/plugins/mailpoet-premium
|
||||||
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
|
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
|
||||||
- ../../dev/php.ini:/usr/local/etc/php/conf.d/php_user.ini
|
- ../../dev/php.ini:/usr/local/etc/php/conf.d/php_user.ini
|
||||||
- ../../dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
|
- ../../dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
|
||||||
@ -82,6 +84,7 @@ services:
|
|||||||
- ../../mailpoet:/project
|
- ../../mailpoet:/project
|
||||||
- ../../mailpoet:/var/www/html/wp-content/plugins/mailpoet
|
- ../../mailpoet:/var/www/html/wp-content/plugins/mailpoet
|
||||||
- ../../mailpoet-premium:/project/mailpoet-premium
|
- ../../mailpoet-premium:/project/mailpoet-premium
|
||||||
|
- ../../mailpoet-premium:/var/www/html/wp-content/plugins/mailpoet-premium
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/www/html/wp-content/uploads/mailpoet/
|
- /var/www/html/wp-content/uploads/mailpoet/
|
||||||
ports:
|
ports:
|
||||||
|
Reference in New Issue
Block a user