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}
1515
1616set -euxo pipefail
1717
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-
2918if [ -z " $phpversion " ]; then
3019phpversion=$( php -r ' echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";' )
3120fi
3221
3322show_phpinfo " $phpversion "
3423
24+ # This needs to be done before running composer
25+ sudo apt update && sudo apt install php${phpversion} -bcmath -y
26+
3527section_start " Run composer"
3628export APP_ENV=" dev"
3729cd webapp
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ wget \
6464 http://localhost/domjudge/" $URL "
6565set -e
6666RET=$?
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
6772section_end
6873
6974section_start " Archive downloaded site"
Original file line number Diff line number Diff line change 3636 with :
3737 languages : ${{ matrix.language }}
3838
39+ - name : Install bcmath
40+ run : apt update; apt install php-bcmath -y
41+
3942 - name : Install composer files
4043 if : ${{ contains(env.COMPILED, matrix.language) }}
4144 run : |
You can’t perform that action at this time.
0 commit comments