2020-10-21 13:53:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Initializing WooCommerce E2E"
|
|
|
|
|
2021-03-16 13:54:47 +00:00
|
|
|
wp plugin activate woocommerce
|
2020-10-21 13:53:00 +00:00
|
|
|
wp theme install twentynineteen --activate
|
|
|
|
wp user create customer customer@woocommercecoree2etestsuite.com --user_pass=password --role=customer --path=/var/www/html
|
|
|
|
|
|
|
|
# we cannot create API keys for the API, so we using basic auth, this plugin allows that.
|
|
|
|
wp plugin install https://github.com/WP-API/Basic-Auth/archive/master.zip --activate
|
|
|
|
|
2021-03-16 13:54:47 +00:00
|
|
|
# install the WP Mail Logging plugin to test emails
|
|
|
|
wp plugin install wp-mail-logging --activate
|
|
|
|
|
2021-09-20 16:51:11 +00:00
|
|
|
# initialize pretty permalinks
|
|
|
|
wp rewrite structure /%postname%/
|
|
|
|
|
2020-11-20 18:48:18 +00:00
|
|
|
echo "Updating to WordPress Nightly Point Release"
|
2021-07-06 12:00:50 +00:00
|
|
|
wp core update https://wordpress.org/nightly-builds/wordpress-latest.zip
|
2020-10-21 16:25:23 +00:00
|
|
|
|
2021-07-06 12:00:50 +00:00
|
|
|
echo "Updating the database"
|
|
|
|
wp core update-db
|