1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/bin/bash
set -e
BASH_XTRACEFD=1
set -x
patch -p1 < debian/patches/DEP-8/Tests-against-installed-classes.patch
ln -s ./src/Symfony ./Symfony
mkdir vendor
ln -s ../debian/autoload.DEP-8.php ./vendor/autoload.php
set +x
components=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n')
echo "$components" | parallel --gnu --keep-order 'echo -e "\\nRunning {} tests"; phpunit --colors=always --exclude-group tty,benchmark,intl-data,dns-sensitive {} || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));' && exit_code=0 || exit_code=$?
set -x
rm -f ./Symfony
rm -rf ./vendor
patch -Rp1 < debian/patches/DEP-8/Tests-against-installed-classes.patch
exit $exit_code
|