2018-09-21 13:06:16 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# usage: travis.sh before|after
|
|
|
|
|
|
|
|
if [ $1 == 'before' ]; then
|
|
|
|
|
2018-11-02 14:06:29 +00:00
|
|
|
if [[ ${RUN_PHPCS} == 1 ]]; then
|
2019-03-13 17:14:02 +00:00
|
|
|
cd "$WP_CORE_DIR/wp-content/plugins/woocommerce-admin/"
|
2018-11-02 14:06:29 +00:00
|
|
|
# This can (currently) only run for PHP 7.1+
|
|
|
|
composer install
|
|
|
|
fi
|
2018-09-21 13:06:16 +00:00
|
|
|
|
|
|
|
fi
|