File: phpunit

package info (click to toggle)
symfony 2.8.7%2Bdfsg-1.3%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 39,888 kB
  • sloc: php: 225,095; xml: 4,083; sh: 475; ansic: 263; makefile: 127
file content (20 lines) | stat: -rwxr-xr-x 682 bytes parent folder | download
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