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

更新 .gitlab-ci.yml

上级 8fd446bc
流水线 #151457 已通过 于阶段
用时 20 秒
......@@ -22,9 +22,19 @@ case1:
<<: *codecode-runner
script:
- make
- ./app.exe < input1.txt > user_output1.txt
- diff output1.txt user_output1.txt -b -B -y -i -W 100
- execscore.sh 60
- score=60
- count=$(find . -name "input*.txt" | wc -l)
- for i in $(seq 1 1 $count);
do
./app.exe < input${i}.txt > user_output${i}.txt;
diff output1.txt user_output1.txt -b -B -y -i -W 100;
let score+=40/$count;
if [ $i == $count ]; then score=100; fi;
source execscore.sh $score;
done
# - ./app.exe < input1.txt > user_output1.txt
# - diff output1.txt user_output1.txt -b -B -y -i -W 100
# - execscore.sh 60
only:
- master
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论