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

更新 .gitlab-ci.yml

上级 de02e678
流水线 #151603 已通过 于阶段
用时 44 秒
...@@ -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
......
  • Developer

    代码质量分析发现了 3 个问题。

    • 0 blocker
    • 🚫 0 critical
    • 0 major
    • 🔽 1 minor
    • 2 info

    注意: 存在下列问题的代码行在本次提交中没有发生变更,无法使用代码行评论的方式进行报告。所以将下列问题汇总显示在这里(点击问题链接可以转到对应的源代码行):

    1. 🔽 Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config. (ProjectKey-169403) 📘
    2. keyword 'if' not followed by a single space 📘
    3. keyword 'if' not followed by a single space 📘
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论