We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818a90e commit e14f991Copy full SHA for e14f991
docker/php-src-devtools-entrypoint
@@ -1,18 +1,39 @@
1
#!/usr/bin/env bash
2
set -e
3
4
+function doConfigure()
5
+{
6
+ if [ ! -f configure ]; then
7
+ ./buildconf
8
+ fi
9
+ ./configure
10
+}
11
+
12
+function doBuild()
13
14
+ if [ ! -f Makefile ]; then
15
+ doConfigure
16
+ fi;
17
+ make -j`nproc`
18
19
20
+function doTest()
21
22
23
24
25
+ TESTS="$1" make -j`nproc` test
26
27
28
case "$1" in
29
"build")
- make -j`nproc`
- ;;
- "buildconf")
- ./buildconf
30
+ doBuild
31
;;
32
"configure")
- ./configure
33
34
35
"test")
- TESTS="$2" make test
36
+ doTest "$1"
37
38
*)
39
echo "Unknown command"
0 commit comments