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

更新 .gitlab-ci.yml

上级 8fd446bc
...@@ -22,9 +22,19 @@ case1: ...@@ -22,9 +22,19 @@ case1:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app.exe < input1.txt > user_output1.txt - score=60
- diff output1.txt user_output1.txt -b -B -y -i -W 100 - count=$(find . -name "input*.txt" | wc -l)
- execscore.sh 60 - 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: only:
- master - master
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论