From 10f55dbff48350437b9e4b9abda79422f3746d32 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 9 Jan 2020 15:22:08 -0300 Subject: [PATCH] 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`). --- unit-tests/bin/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unit-tests/bin/install.sh b/unit-tests/bin/install.sh index 0b6747fc8a3..8ab83ff1a13 100755 --- a/unit-tests/bin/install.sh +++ b/unit-tests/bin/install.sh @@ -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