Skip to content

Commit

Permalink
Tests: Enabled popular plugins on Travis when running e2e test suite (#…
Browse files Browse the repository at this point in the history
…12578)

* Tests: Enabled popular plugins on Travis when running e2e test suite

* Try running WP-CLI with a different user

* Tweak if statement

* Add back chmod dance on plugins related folders

* Create upgrade folder

* Add a temporary noop catch when api fetch for meta box save fails. Not having a catch caused an end to end test to fail.

* Fix: clickBelow logic clicked on the meta boxes when a big meta box was open.

* Make todo LOUD ;-)

* Remove obsolete lines after rebasing with master

* Let's try without AFC

* Trying without Yoast SEO this time

* Revert changes for the test

* Enable 2 more plugins

* Try without AMP
  • Loading branch information
gziolo authored Dec 20, 2018
1 parent b359a9c commit e3a9f5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- ./bin/run-wp-unit-tests.sh

- stage: test
env: WP_VERSION=latest
env: WP_VERSION=latest POPULAR_PLUGINS=true
script:
- ./bin/run-e2e-tests.sh || exit 1

Expand Down
7 changes: 7 additions & 0 deletions bin/install-wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ fi
echo -e $(status_message "Activating Gutenberg...")
docker-compose $DOCKER_COMPOSE_FILE_OPTIONS run --rm -u 33 $CLI plugin activate gutenberg --quiet

if [ "$POPULAR_PLUGINS" == "true" ]; then
echo -e $(status_message "Activating popular plugins...")
docker-compose $DOCKER_COMPOSE_FILE_OPTIONS run --rm -u 33 $CLI plugin install advanced-custom-fields --activate --quiet
docker-compose $DOCKER_COMPOSE_FILE_OPTIONS run --rm -u 33 $CLI plugin install jetpack --activate --quiet
docker-compose $DOCKER_COMPOSE_FILE_OPTIONS run --rm -u 33 $CLI plugin install wpforms-lite --activate --quiet
fi

# Install a dummy favicon to avoid 404 errors.
echo -e $(status_message "Installing a dummy favicon...")
docker-compose $DOCKER_COMPOSE_FILE_OPTIONS run --rm $CONTAINER touch /var/www/html/favicon.ico

0 comments on commit e3a9f5c

Please sign in to comment.