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

更新 .gitlab-ci.yml

上级 70564a69
流水线 #151433 已失败 于阶段
用时 9 秒
......@@ -34,6 +34,7 @@ case1:
if [ $i == $count ]; then
score=100;
fi
execscore.sh $score;
done
# - ./app < input1.txt > user_output1.txt
# - diff output1.txt user_output1.txt -b -B -y -i -W 100
......@@ -46,11 +47,15 @@ teacher-check1:
<<: *codecode-runner
script:
- make
- ./app < input1.txt > /dev/null
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${CI_PROJECT_FORKSOURCE} template
- diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i --suppress-common-lines
- diff template/input1.txt input1.txt -b -B -y -i --suppress-common-lines
- diff template/output1.txt output1.txt -b -B -y -i --suppress-common-lines
- count=$(find . -name "input*.txt" | wc -l)
- for i in $(seq 1 1 $count);
do
./app.exe < input${i}.txt > /dev/null;
diff template/input${i}.txt input${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
- fileidentity.sh
only:
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论