提交 00e1bb19 创建 作者: 宋海霞's avatar 宋海霞

更新 .gitlab-ci.yml

上级 de02e678
...@@ -56,16 +56,19 @@ teacher-check1: ...@@ -56,16 +56,19 @@ teacher-check1:
- for i in $(seq 1 1 $count); - for i in $(seq 1 1 $count);
do do
./app.exe < input${i}.txt > /dev/null; ./app.exe < input${i}.txt > /dev/null;
echo "正在检查input${i}.txt文件的一致性";
diff template/input${i}.txt input${i}.txt -b -B -y -i --suppress-common-lines; diff template/input${i}.txt input${i}.txt -b -B -y -i --suppress-common-lines;
echo "正在检查output${i}.txt文件的一致性";
diff template/output${i}.txt output${i}.txt -b -B -y -i --suppress-common-lines; diff template/output${i}.txt output${i}.txt -b -B -y -i --suppress-common-lines;
done done
- fileidentity.sh - fileidentity.sh
- if [ -z "$TEACHERCHECK_REPO" ]; - if [ -n "$TEACHERCHECK_REPO" ];
then then
git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check; git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check;
extracount=$(cd teacher_check && find . -name "input*.txt" | wc -l); extracount=$(cd teacher_check && find . -name "input*.txt" | wc -l);
for i in $(seq 1 1 $extracount); for i in $(seq 1 1 $extracount);
do do
echo "正在检查附加算例case${i}";
./app.exe < teacher_check/input${i}.txt > user_output${i}.txt; ./app.exe < teacher_check/input${i}.txt > user_output${i}.txt;
diff teacher_check/output${i}.txt user_output${i}.txt -b -B -y -i -W 100; diff teacher_check/output${i}.txt user_output${i}.txt -b -B -y -i -W 100;
done done
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论