More config changes

This commit is contained in:
Mike Jolley 2019-06-11 10:50:13 +01:00
parent ceae3979a8
commit 0753e3f6a8
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@ if [[ ${RUN_PHPCS} == 1 ]]; then
if [ "$CHANGED_FILES" != "" ]; then
echo "Running Code Sniffer."
cd "$WP_CORE_DIR/wp-content/plugins/woocommerce-rest-api/"
./vendor/bin/phpcs --ignore=$IGNORE --encoding=utf-8 -s -n -p $CHANGED_FILES
fi
fi

View File

@ -1,4 +1,8 @@
#!/usr/bin/env bash
WORKING_DIR="$PWD"
cd "$WP_CORE_DIR/wp-content/plugins/woocommerce-rest-api/"
phpunit --version
phpunit -c phpunit.xml $@
phpunit -c phpunit.xml
TEST_RESULT=$?
cd "$WORKING_DIR"
exit $TEST_RESULT