File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ set -x
2
+
1
3
phpunit_shim () {
2
4
# -class CurlTest extends \PHPUnit\Framework\TestCase
3
5
# +class CurlTest extends \PHPUnit_Framework_TestCase
Original file line number Diff line number Diff line change
1
+ set -x
2
+
1
3
errors=0
2
4
3
5
# Check syntax in php files. Use `xargs' over `find -exec' as xargs exits with a value of 1 when any command errors.
4
6
find . -type " f" -iname " *.php" ! -path " */vendor/*" | xargs -L " 1" php -l
5
7
if [[ " ${?} " -ne 0 ]]; then
8
+ echo " Error: php syntax checks failed"
6
9
(( errors++ ))
7
10
fi
8
11
9
12
# Run tests.
10
13
phpunit --version
11
14
phpunit --configuration " tests/phpunit.xml"
12
15
if [[ " ${?} " -ne 0 ]]; then
16
+ echo " Error: phpunit command failed"
13
17
(( errors++ ))
14
18
fi
15
19
@@ -125,6 +129,7 @@ phpcs \
125
129
-s \
126
130
.
127
131
if [[ " ${?} " -ne 0 ]]; then
132
+ echo " Error: found standard violation(s)"
128
133
(( errors++ ))
129
134
fi
130
135
You can’t perform that action at this time.
0 commit comments