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

更新 .gitlab-ci.yml

上级 90e6f3c8
......@@ -80,15 +80,17 @@ teacher-check1:
diff template/output${i}.txt output${i}.txt -b -B -y -i --suppress-common-lines;
done
- fileidentity.sh
- 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)
- for i in $(seq 1 1 $extracount);
do
./app < 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;
done
- extracase.sh
- if [ -z "$TEACHERCHECK_REPO" ];
then
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);
for i in $(seq 1 1 $extracount);
do
./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;
done
extracase.sh;
fi;
only:
- master
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论