Fix unit test suite in the Travis build jobs

This commit fixes a problem in the script that configures the
environment to run the unit tests in the Travis build jobs. The script
was not running `composer install` in the WooCommerce directory, leaving
it installation incomplete and thus the tests were failing.

To fix this problem, this commit adds a call to `composer install` right
after WooCommerce is downloaded in the setup script
(`unit-tests/bin/install.sh`).
This commit is contained in:
Rodrigo Primo 2020-01-09 15:22:08 -03:00 committed by Claudio Sanches
parent 4ea0e73909
commit 10f55dbff4
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ install_deps() {
git clone --depth 1 https://github.com/woocommerce/woocommerce.git
cd "woocommerce"
composer install
cd "$WP_CORE_DIR"
php wp-cli.phar plugin activate woocommerce