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

更新 .gitlab-ci.yml

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