We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45bc7f commit 5b95519Copy full SHA for 5b95519
travis.sh
@@ -152,6 +152,19 @@ fi
152
cd ${DIR}/tests
153
make check-syntax check test-stress
154
155
+# Prepare to load example problems from Kattis/problemtools
156
+echo "INSERT INTO userrole (userid, roleid) VALUES (3, 1);" | mysql domjudge
157
+cd /tmp
158
+git clone https://github.com/Kattis/problemtools.git
159
+cd problemtools/examples
160
+for i in hello different guess; do
161
+ (
162
+ cd "$i"
163
+ zip -r "../${i}.zip" -- *
164
+ )
165
+ curl -X POST -n -N -F zip[]=@${i}.zip http://localhost/domjudge/api/contests/2/problems
166
+done
167
+
168
# wait for and check results
169
NUMSUBS=$(curl http://admin:admin@localhost/domjudge/api/contests/2/submissions | python -mjson.tool | grep -c '"id":')
170
export COOKIEJAR
0 commit comments