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

更新 .gitlab-ci.yml

上级 90e6f3c8
...@@ -80,15 +80,17 @@ teacher-check1: ...@@ -80,15 +80,17 @@ teacher-check1:
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
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check - if [ -z "$TEACHERCHECK_REPO" ];
- extracount=$(cd teacher_check && find . -name "input*.txt" | wc -l) then
- for i in $(seq 1 1 $extracount); git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check;
do extracount=$(cd teacher_check && find . -name "input*.txt" | wc -l);
./app < teacher_check/input${i}.txt > user_output${i}.txt for i in $(seq 1 1 $extracount);
diff teacher_check/output${i}.txt user_output${i}.txt -b -B -y -i -W 100; do
done ./app.exe < teacher_check/input${i}.txt > user_output${i}.txt;
- extracase.sh diff teacher_check/output${i}.txt user_output${i}.txt -b -B -y -i -W 100;
done
extracase.sh;
fi;
only: only:
- master - master
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论