Skip to content

Commit 84e4903

Browse files
committed
Better logging on webstandard job errors on CI.
1 parent ec294b2 commit 84e4903

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/jobs/baseinstall.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ fi
2121

2222
show_phpinfo "$phpversion"
2323

24+
# This needs to be done before running composer
25+
sudo apt update && sudo apt install php${phpversion}-bcmath -y
26+
2427
section_start "Run composer"
2528
export APP_ENV="dev"
2629
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"

0 commit comments

Comments
 (0)