File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /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
+
2
7
mkdir /judge
3
8
cd /judge || exit
4
9
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
+
5
17
python3 -m venv --prompt=DMOJ env
6
18
env/bin/pip3 install -e .
7
19
runuser -u judge -w PATH -- bash -c ' . ~/.profile; /judge/env/bin/python3 -u .docker.test.py'
You can’t perform that action at this time.
0 commit comments