woocommerce/plugins/woocommerce-admin/bin/travis.sh

13 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
# usage: travis.sh before|after
if [ $1 == 'before' ]; then
if [[ ${RUN_PHPCS} == 1 ]]; then
cd "$WP_CORE_DIR/wp-content/plugins/wc-admin/"
# This can (currently) only run for PHP 7.1+
composer install
fi
fi