File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ case "$1" in
13
13
" test" )
14
14
runInContainer test " ${@: 2} "
15
15
;;
16
+ " php" )
17
+ runInContainer run-cli " ${@: 2} "
18
+ ;;
16
19
* )
17
20
echo " Unknown command"
18
21
exit 2
Original file line number Diff line number Diff line change @@ -11,20 +11,28 @@ function doConfigure()
11
11
12
12
function doBuild()
13
13
{
14
- if [ ! -f Makefile ]; then
15
- doConfigure
16
- fi ;
17
- make -j` nproc`
14
+ if [ ! -f Makefile ]; then
15
+ doConfigure
16
+ fi ;
17
+ make -j` nproc`
18
18
}
19
19
20
20
function doTest()
21
21
{
22
- if [ ! -f Makefile ]; then
22
+ if [ ! -f Makefile ]; then
23
23
doConfigure
24
24
fi ;
25
25
TESTS=" $1 " make -j` nproc` test
26
26
}
27
27
28
+ function doRunCli()
29
+ {
30
+ if [ ! -f sapi/cli/php ]; then
31
+ doBuild
32
+ fi ;
33
+ sapi/cli/php " $@ "
34
+ }
35
+
28
36
case " $1 " in
29
37
" build" )
30
38
doBuild
@@ -35,6 +43,9 @@ case "$1" in
35
43
" test" )
36
44
doTest " $1 "
37
45
;;
46
+ " run-cli" )
47
+ doRunCli " ${@: 2} "
48
+ ;;
38
49
* )
39
50
echo " Unknown command"
40
51
exit 2
You can’t perform that action at this time.
0 commit comments