Merge pull request woocommerce/woocommerce-admin#2640 from woocommerce/fix/ci-tests-woo-deps

Tests setup: bring in Woo Core dependencies
This commit is contained in:
Jeff Stieler 2019-07-12 11:45:55 -06:00 committed by GitHub
commit c68fdde2e5
1 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,11 @@ install_deps() {
cd "wp-content/plugins/" cd "wp-content/plugins/"
# As zip file does not include tests, we have to get it from git repo. # As zip file does not include tests, we have to get it from git repo.
git clone --depth 1 https://github.com/woocommerce/woocommerce.git git clone --depth 1 https://github.com/woocommerce/woocommerce.git
# Bring in WooCommerce Core dependencies
cd "woocommerce"
composer install --no-dev
cd "$WP_CORE_DIR" cd "$WP_CORE_DIR"
php wp-cli.phar plugin activate woocommerce php wp-cli.phar plugin activate woocommerce