#!/bin/bash
#
# The default FriendsOfCake/travis before_script.sh doesn't exclude
# the Plugin/$PLUGIN_NAME/vendor directory when it write out its
# phpunit.xml file. This script overwrites it.


echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<phpunit>
<filter>
    <whitelist>
        <directory suffix=\".php\">Plugin/$PLUGIN_NAME</directory>
        <exclude>
            <directory suffix=\".php\">Plugin/$PLUGIN_NAME/Test</directory>
            <directory suffix=\".php\">Plugin/$PLUGIN_NAME/vendor</directory>
        </exclude>
    </whitelist>
</filter>
</phpunit>" > ../cakephp/app/phpunit.xml

#!/bin/bash
#
# The default FriendsOfCake/travis before_script.sh doesn't exclude
# the Plugin/$PLUGIN_NAME/vendor directory when it write out its
# phpunit.xml file. This script overwrites it.


# Do nothing on code sniff builds.
if [ "$PHPCS" == 1 ]; then
	exit 0
fi

# Write a phpunit.xml file to use.
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<phpunit>
<filter>
    <whitelist>
        <directory suffix=\".php\">Plugin/$PLUGIN_NAME</directory>
        <exclude>
            <directory suffix=\".php\">Plugin/$PLUGIN_NAME/Test</directory>
            <directory suffix=\".php\">Plugin/$PLUGIN_NAME/vendor</directory>
        </exclude>
    </whitelist>
</filter>
</phpunit>" > ../cakephp/app/phpunit.xml

Address directory issues for code sniffer build.
Address directory issues for code sniffer build.