Skip to content

Commit

Permalink
Download scratch-run and testlib before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hieplpvip committed May 28, 2024
1 parent e0285da commit 125c7e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test-tier3/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
#!/bin/bash

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")
unzip scratch-run.zip
mv scratch-run /usr/bin/scratch-run

mkdir /judge
cd /judge || exit
curl -L https://github.com/VNOI-Admin/judge-server/archive/master.tar.gz | tar -xz --strip-components=1

mkdir -p /usr/lib/fpc/
cp asset/Windows.pas /usr/lib/fpc/
fpc -Fe/dev/stderr -O2 /usr/lib/fpc/Windows.pas

.docker/download_testlib_and_precompile

python3 -m venv --prompt=DMOJ env
env/bin/pip3 install -e .
runuser -u judge -w PATH -- bash -c '. ~/.profile; /judge/env/bin/python3 -u .docker.test.py'

0 comments on commit 125c7e2

Please sign in to comment.