File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,15 @@ MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
15
15
16
16
set -euxo pipefail
17
17
18
- sudo apt update && sudo apt install php-bcmath -y
19
- sudo apt install php${phpversion} -bcmath -y
20
-
21
- echo
22
- echo " DEBUG <========================================================================="
23
- echo
24
- apt search bcmath
25
- echo " DEBUG <========================================================================="
26
- echo
27
-
28
-
29
18
if [ -z " $phpversion " ]; then
30
19
phpversion=$( php -r ' echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";' )
31
20
fi
32
21
33
22
show_phpinfo " $phpversion "
34
23
24
+ # This needs to be done before running composer
25
+ sudo apt update && sudo apt install php${phpversion} -bcmath -y
26
+
35
27
section_start " Run composer"
36
28
export APP_ENV=" dev"
37
29
cd webapp
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ wget \
64
64
http://localhost/domjudge/" $URL "
65
65
set -e
66
66
RET=$?
67
+ if [ $RET -ne 0 ]; then
68
+ section_end
69
+ section_start " Server log"
70
+ tail -n1000 /opt/domjude/domserver/webapp/var/log/prod.log
71
+ fi
67
72
section_end
68
73
69
74
section_start " Archive downloaded site"
Original file line number Diff line number Diff line change 36
36
with :
37
37
languages : ${{ matrix.language }}
38
38
39
+ - name : Install bcmath
40
+ run : apt update; apt install php-bcmath -y
41
+
39
42
- name : Install composer files
40
43
if : ${{ contains(env.COMPILED, matrix.language) }}
41
44
run : |
You can’t perform that action at this time.
0 commit comments