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

更新 .gitlab-ci.yml

上级 3565ed0d
......@@ -16,29 +16,15 @@ variables:
- ubuntu-16.04
- short-job
- code-analysis
case1:
stage: case1
<<: *codecode-runner
script:
- make
- 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;
let score+=40/$count;
if [ $i == $count ]; then score=100; fi;
source execscore.sh $score;
done
- ./app < input1.txt > user_output1.txt
- diff output1.txt user_output1.txt -b -B -y -i -W 100
- diff output2.txt user_output2.txt -b -B -y -i -W 100
- diff output3.txt user_output3.txt -b -B -y -i -W 100
# - ./app < input1.txt > user_output1.txt
# - diff output1.txt user_output1.txt -b -B -y -i -W 100
# - execscore.sh 60
- execscore.sh 60
only:
- master
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论