Skip to content

Commit a83a48e

Browse files
committed
Download scratch-run and testlib before running tests
1 parent cb6ca6a commit a83a48e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test-tier3/run

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
#!/bin/bash
2+
3+
curl --location -o scratch-run.zip $(curl -s https://api.github.com/repos/VNOI-Admin/scratch-run/releases/latest | grep -o -m 1 "https://github\.com.*.*linux_amd64\.zip")
4+
unzip scratch-run.zip
5+
mv scratch-run /usr/bin/scratch-run
6+
27
mkdir /judge
38
cd /judge || exit
49
curl -L https://github.com/VNOI-Admin/judge-server/archive/master.tar.gz | tar -xz --strip-components=1
10+
11+
mkdir -p /usr/lib/fpc/
12+
cp asset/Windows.pas /usr/lib/fpc/
13+
fpc -Fe/dev/stderr -O2 /usr/lib/fpc/Windows.pas
14+
15+
.docker/download_testlib_and_precompile
16+
517
python3 -m venv --prompt=DMOJ env
618
env/bin/pip3 install -e .
719
runuser -u judge -w PATH -- bash -c '. ~/.profile; /judge/env/bin/python3 -u .docker.test.py'

0 commit comments

Comments
 (0)