Skip to content

Commit 461f520

Browse files
committed
more problems
1 parent 785555a commit 461f520

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/integration.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,22 @@ jobs:
4646
run: sudo userdel -f -r domjudge-run-0 ; sudo useradd -d /nonexistent -g nogroup -s /bin/false -u 2222 domjudge-run-0
4747
- name: Start judging
4848
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
5165
- name: Monitor judgehost log and stop once all submissions are judged
5266
run: |
5367
tail -f /opt/domjudge/judgehost/log/judge*-0.log | while read line; do

0 commit comments

Comments
 (0)