More config changes
This commit is contained in:
parent
ceae3979a8
commit
0753e3f6a8
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue