File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export GITSHA
1313export PS4=' (${BASH_SOURCE}:${LINENO}): - [$?] $ '
1414export LOGFILE=" /opt/domjudge/domserver/webapp/var/log/prod.log"
1515
16+ CCS_SPECS_PINNED_SHA1=' 6b11623d586500d11ec20b6c12a4908b44ff0e41'
17+
1618# Shared storage for all artifacts
1719export GITLABARTIFACTS=" $DIR /gitlabartifacts"
1820mkdir -p " $GITLABARTIFACTS "
Original file line number Diff line number Diff line change 108108section_end judgehost
109109
110110section_start more_setup " Remaining setup (e.g. starting judgedaemon)"
111- # download domjudge-scripts for API check
111+
112+ # Download yajsv and ccs-specs for API check.
112113cd $HOME
113- composer -n require justinrainbow/json-schema
114+ curl -o yajsv https://github.com/neilpa/yajsv/releases/download/v1.4.1/yajsv.linux.amd64
115+ chmod a+x yajsv
114116echo -e " \033[0m"
115- PATH= ${PATH} : ${HOME} /vendor/bin
116- git clone --depth=1 https://github.com/DOMjudge/domjudge-scripts.git
117- CHECK_API=${HOME} /domjudge-scripts/contest-api/ check-api.sh
117+ git clone https://github.com/icpc/ccs-specs.git
118+ ( cd ccs-specs && git reset --hard $CCS_SPECS_PINNED_SHA1 )
119+ CHECK_API=" ${HOME} /ccs-specs/ check-api.sh -j ${HOME} /yajsv "
118120
119121# Recreate domjudge-run-0 user with random UID to prevent clashes with
120122# existing users in the host and other CI jobs, which can lead to
You can’t perform that action at this time.
0 commit comments