File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 46
46
run : sudo userdel -f -r domjudge-run-0 ; sudo useradd -d /nonexistent -g nogroup -s /bin/false -u 2222 domjudge-run-0
47
47
- name : Start judging
48
48
run : sudo -u domjudge sh -c 'cd /opt/domjudge/judgehost/ && nohup bin/judgedaemon -n 0 &'
49
- - name : DEBUG
50
- run : ls -al /opt/domjudge/judgehost/log/
49
+ - name : Import Kattis example problems
50
+ run : |
51
+ cd /tmp
52
+ git clone --depth=1 https://github.com/Kattis/problemtools.git
53
+ cd problemtools/examples
54
+ mv hello hello_kattis
55
+ # Remove 2 submissions that will not pass validation. The first is because it is
56
+ # a Python 2 submission. The latter has a judgement type we do not understand.
57
+ rm different/submissions/accepted/different_py2.py different/submissions/slow_accepted/different_slow.py
58
+ for i in hello_kattis different guess; do
59
+ (
60
+ cd "$i"
61
+ zip -r "../${i}.zip" -- *
62
+ )
63
+ curl --fail -X POST -n -N -F zip=@${i}.zip http://localhost/domjudge/api/contests/demo/problems
64
+ done
51
65
- name : Monitor judgehost log and stop once all submissions are judged
52
66
run : |
53
67
tail -f /opt/domjudge/judgehost/log/judge*-0.log | while read line; do
You can’t perform that action at this time.
0 commit comments