Skip to content

Commit

Permalink
Try testing E2E tests on GB plugin trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jul 18, 2023
1 parent d6553a3 commit d001e7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/local-env/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- wordpress_data:/var/www/html
- ../../:/var/www/html/wp-content/plugins/amp
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- /tmp/gutenberg/:/var/www/html/wp-content/plugins/gutenberg
depends_on:
- mysql

Expand All @@ -20,6 +21,7 @@ services:
volumes:
- wordpress_data:/var/www/html
- ../../:/var/www/html/wp-content/plugins/amp
- /tmp/gutenberg/:/var/www/html/wp-content/plugins/gutenberg
env_file:
- .env.wp
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion bin/local-env/install-wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ wp plugin activate amp --quiet

# Install & activate Gutenberg plugin.
echo -e $(status_message "Installing and activating Gutenberg plugin...")
wp plugin install gutenberg --activate --force --quiet
wp plugin activate gutenberg --quiet

# Set pretty permalinks.
echo -e $(status_message "Setting permalink structure...")
Expand Down
5 changes: 5 additions & 0 deletions bin/local-env/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ cd "$(dirname "$0")/../.."
# Check whether Composer installed
. "$(dirname "$0")/install-composer.sh"

# Add GB trunk to /tmp/gutenberg
rm -rf /tmp/gutenberg /tmp/gutenberg.zip
wget https://gutenbergtimes.com/wp-content/uploads/2020/11/gutenberg.zip -O /tmp/gutenberg.zip
unzip /tmp/gutenberg.zip -d /tmp/gutenberg

# Check whether Docker is installed and running
. "$(dirname "$0")/launch-containers.sh"

Expand Down

0 comments on commit d001e7b

Please sign in to comment.