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
13
13
export PS4=' (${BASH_SOURCE}:${LINENO}): - [$?] $ '
14
14
export LOGFILE=" /opt/domjudge/domserver/webapp/var/log/prod.log"
15
15
16
+ CCS_SPECS_PINNED_SHA1=' 6b11623d586500d11ec20b6c12a4908b44ff0e41'
17
+
16
18
# Shared storage for all artifacts
17
19
export GITLABARTIFACTS=" $DIR /gitlabartifacts"
18
20
mkdir -p " $GITLABARTIFACTS "
Original file line number Diff line number Diff line change 108
108
section_end judgehost
109
109
110
110
section_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.
112
113
cd $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
114
116
echo -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 "
118
120
119
121
# Recreate domjudge-run-0 user with random UID to prevent clashes with
120
122
# 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