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

更新 .gitlab-ci.yml

上级 ec5342d9
......@@ -3,13 +3,6 @@ stages:
- make
- code-analysis
- case1
- case2
- case3
- case4
- case5
- case6
- case7
- case8
variables:
TEACHERCHECK_REPO: "engintime/cp-lab/teachers-packet/Lab008.git"
......@@ -25,7 +18,7 @@ make:
script:
- make
- ./app < input1.txt > user_output1.txt
- execscore.sh 40
- execscore.sh 60
only:
- master
......@@ -50,7 +43,7 @@ case1:
- make
- ./app < input1.txt > user_output1.txt
- diff output1.txt user_output1.txt -b -B -y -i --suppress-common-lines
- execscore.sh 50
- execscore.sh 100
only:
- master
......@@ -73,220 +66,3 @@ teacher-check1:
- master
when: manual
allow_failure: true
\ No newline at end of file
case2:
stage: case2
<<: *codecode-runner
script:
- make
- ./app < input2.txt > user_output2.txt
- diff output2.txt user_output2.txt -b -B -y -i --suppress-common-lines
- execscore.sh 60
only:
- master
teacher-check2:
stage: case2
<<: *codecode-runner
script:
- make
- ./app < input2.txt
- 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/input2.txt input2.txt -b -B -y -i --suppress-common-lines
- diff template/output2.txt output2.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input2.txt > user_output2.txt
- diff teacher_check/output2.txt user_output2.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
case3:
stage: case3
<<: *codecode-runner
script:
- make
- ./app < input3.txt > user_output3.txt
- diff output3.txt user_output3.txt -b -B -y -i --suppress-common-lines
- execscore.sh 65
only:
- master
teacher-check3:
stage: case3
<<: *codecode-runner
script:
- make
- ./app < input3.txt
- 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/input3.txt input3.txt -b -B -y -i --suppress-common-lines
- diff template/output3.txt output3.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input3.txt > user_output3.txt
- diff teacher_check/output3.txt user_output3.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
case4:
stage: case4
<<: *codecode-runner
script:
- make
- ./app < input4.txt > user_output4.txt
- diff output4.txt user_output4.txt -b -B -y -i --suppress-common-lines
- execscore.sh 70
only:
- master
teacher-check4:
stage: case4
<<: *codecode-runner
script:
- make
- ./app < input4.txt
- 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/input4.txt input4.txt -b -B -y -i --suppress-common-lines
- diff template/output4.txt output4.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input4.txt > user_output4.txt
- diff teacher_check/output4.txt user_output4.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
case5:
stage: case5
<<: *codecode-runner
script:
- make
- ./app < input5.txt > user_output5.txt
- diff output5.txt user_output5.txt -b -B -y -i --suppress-common-lines
- execscore.sh 75
only:
- master
teacher-check5:
stage: case5
<<: *codecode-runner
script:
- make
- ./app < input5.txt
- 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/input5.txt input5.txt -b -B -y -i --suppress-common-lines
- diff template/output5.txt output5.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input5.txt > user_output5.txt
- diff teacher_check/output5.txt user_output5.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
case6:
stage: case6
<<: *codecode-runner
script:
- make
- ./app < input6.txt > user_output6.txt
- diff output6.txt user_output6.txt -b -B -y -i --suppress-common-lines
- execscore.sh 80
only:
- master
teacher-check6:
stage: case6
<<: *codecode-runner
script:
- make
- ./app < input6.txt
- 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/input6.txt input6.txt -b -B -y -i --suppress-common-lines
- diff template/output6.txt output6.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input6.txt > user_output6.txt
- diff teacher_check/output6.txt user_output6.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
case7:
stage: case7
<<: *codecode-runner
script:
- make
- ./app < input7.txt > user_output7.txt
- diff output7.txt user_output7.txt -b -B -y -i --suppress-common-lines
- execscore.sh 90
only:
- master
teacher-check7:
stage: case7
<<: *codecode-runner
script:
- make
- ./app < input7.txt
- 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/input7.txt input7.txt -b -B -y -i --suppress-common-lines
- diff template/output7.txt output7.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input7.txt > user_output7.txt
- diff teacher_check/output7.txt user_output7.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
case8:
stage: case8
<<: *codecode-runner
script:
- make
- ./app < input8.txt > user_output8.txt
- diff output8.txt user_output8.txt -b -B -y -i --suppress-common-lines
- execscore.sh 100
only:
- master
teacher-check8:
stage: case8
<<: *codecode-runner
script:
- make
- ./app < input8.txt
- 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/input8.txt input8.txt -b -B -y -i --suppress-common-lines
- diff template/output8.txt output8.txt -b -B -y -i --suppress-common-lines
- fileidentity.sh
- git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${TEACHERCHECK_REPO} teacher_check
- ./app < teacher_check/input8.txt > user_output8.txt
- diff teacher_check/output8.txt user_output8.txt -b -B -y -i --suppress-common-lines
- extracase.sh
only:
- master
when: manual
allow_failure: true
\ No newline at end of file
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论