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

modify .gitlab-ci.yml

上级 15c5bf32
...@@ -51,7 +51,7 @@ case1: ...@@ -51,7 +51,7 @@ case1:
<<: *codecode-runner <<: *codecode-runner
script: script:
- ./app < input1.txt > user_output1.txt - ./app < input1.txt > user_output1.txt
- diff output1.txt user_output1.txt -b -B -y -i --suppress-common-lines - diff output1.txt user_output1.txt -b -B -y -i -W 100
- execscore.sh 70 - execscore.sh 70
only: only:
- master - master
...@@ -62,13 +62,13 @@ teacher-check1: ...@@ -62,13 +62,13 @@ teacher-check1:
script: script:
- ./app < input1.txt - ./app < input1.txt
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${CI_PROJECT_FORKSOURCE} template - 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/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input1.txt input1.txt -b -B -y -i --suppress-common-lines - diff template/input1.txt input1.txt -b -B -y -i -W 100
- diff template/output1.txt output1.txt -b -B -y -i --suppress-common-lines - diff template/output1.txt output1.txt -b -B -y -i -W 100
- fileidentity.sh - fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check - git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input1.txt > user_output1.txt - ./app < teacher_check/input1.txt > user_output1.txt
- diff teacher_check/output1.txt user_output1.txt -b -B -y -i --suppress-common-lines - diff teacher_check/output1.txt user_output1.txt -b -B -y -i -W 100
- extracase.sh - extracase.sh
only: only:
- master - master
...@@ -80,7 +80,7 @@ case2: ...@@ -80,7 +80,7 @@ case2:
<<: *codecode-runner <<: *codecode-runner
script: script:
- ./app < input2.txt > user_output2.txt - ./app < input2.txt > user_output2.txt
- diff output2.txt user_output2.txt -b -B -y -i --suppress-common-lines - diff output2.txt user_output2.txt -b -B -y -i -W 100
- ./app < input1.txt - ./app < input1.txt
- execscore.sh 80 - execscore.sh 80
only: only:
...@@ -92,13 +92,13 @@ teacher-check2: ...@@ -92,13 +92,13 @@ teacher-check2:
script: script:
- ./app < input2.txt - ./app < input2.txt
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${CI_PROJECT_FORKSOURCE} template - 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/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input2.txt input2.txt -b -B -y -i --suppress-common-lines - diff template/input2.txt input2.txt -b -B -y -i -W 100
- diff template/output2.txt output2.txt -b -B -y -i --suppress-common-lines - diff template/output2.txt output2.txt -b -B -y -i -W 100
- fileidentity.sh - fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check - git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input2.txt > user_output2.txt - ./app < teacher_check/input2.txt > user_output2.txt
- diff teacher_check/output2.txt user_output2.txt -b -B -y -i --suppress-common-lines - diff teacher_check/output2.txt user_output2.txt -b -B -y -i -W 100
- extracase.sh - extracase.sh
only: only:
- master - master
...@@ -110,7 +110,7 @@ case3: ...@@ -110,7 +110,7 @@ case3:
<<: *codecode-runner <<: *codecode-runner
script: script:
- ./app < input3.txt > user_output3.txt - ./app < input3.txt > user_output3.txt
- diff output3.txt user_output3.txt -b -B -y -i --suppress-common-lines - diff output3.txt user_output3.txt -b -B -y -i -W 100
- execscore.sh 100 - execscore.sh 100
only: only:
- master - master
...@@ -121,13 +121,13 @@ teacher-check3: ...@@ -121,13 +121,13 @@ teacher-check3:
script: script:
- ./app < input3.txt - ./app < input3.txt
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${CI_PROJECT_FORKSOURCE} template - 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/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input3.txt input3.txt -b -B -y -i --suppress-common-lines - diff template/input3.txt input3.txt -b -B -y -i -W 100
- diff template/output3.txt output3.txt -b -B -y -i --suppress-common-lines - diff template/output3.txt output3.txt -b -B -y -i -W 100
- fileidentity.sh - fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check - git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input3.txt > user_output3.txt - ./app < teacher_check/input3.txt > user_output3.txt
- diff teacher_check/output3.txt user_output3.txt -b -B -y -i --suppress-common-lines - diff teacher_check/output3.txt user_output3.txt -b -B -y -i -W 100
- extracase.sh - extracase.sh
only: only:
- master - master
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论