Skip to content

Commit eb4cf58

Browse files
committed
Better logging on webstandard job errors on CI.
1 parent 860d16a commit eb4cf58

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/jobs/baseinstall.sh

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,15 @@ MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
1515

1616
set -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-
2918
if [ -z "$phpversion" ]; then
3019
phpversion=$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";')
3120
fi
3221

3322
show_phpinfo "$phpversion"
3423

24+
# This needs to be done before running composer
25+
sudo apt update && sudo apt install php${phpversion}-bcmath -y
26+
3527
section_start "Run composer"
3628
export APP_ENV="dev"
3729
cd webapp

.github/jobs/webstandard.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ wget \
6464
http://localhost/domjudge/"$URL"
6565
set -e
6666
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
6772
section_end
6873

6974
section_start "Archive downloaded site"

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
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: |

0 commit comments

Comments
 (0)