提交 091ead12 创建 作者: 王晓庆's avatar 王晓庆

2

上级 1c38e793
流水线 #118329 已通过 于阶段
用时 1 分 59 秒
image: "mssql-server-2019-python:2019-CU5-ubuntu-18.04" image: "mssql-server-2019-python:2019-CU5-ubuntu-18.04"
stages: stages:
# - case1 - case1
# - case2 - case2
# - case3 - case3
- case4 - case4
.codecode-runner: &codecode-runner .codecode-runner: &codecode-runner
...@@ -10,83 +10,83 @@ stages: ...@@ -10,83 +10,83 @@ stages:
- ubuntu-16.04 - ubuntu-16.04
- short-job - short-job
# case1: case1:
# stage: case1 stage: case1
# <<: *codecode-runner <<: *codecode-runner
# script: script:
# - /opt/mssql/bin/sqlservr > /dev/null & - /opt/mssql/bin/sqlservr > /dev/null &
# - python3 testcases.py ci_test 1 - python3 testcases.py ci_test 1
# - diff output1.txt user_output1.txt -b -B -y -i -W 100 - diff output1.txt user_output1.txt -b -B -y -i -W 100
# - echo -e "\n*******************************************\nexec-score 60\n*******************************************\n" - echo -e "\n*******************************************\nexec-score 60\n*******************************************\n"
# only: only:
# - master - master
# allow_failure: false allow_failure: false
# teacher-check1: teacher-check1:
# image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest" image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest"
# stage: case1 stage: case1
# <<: *codecode-runner <<: *codecode-runner
# before_script: [] before_script: []
# script: script:
# - 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 -i - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -i
# - diff template/output1.txt output1.txt -b -B -i - diff template/output1.txt output1.txt -b -B -i
# only: only:
# - master - master
# when: manual when: manual
# allow_failure: true allow_failure: true
# case2: case2:
# stage: case2 stage: case2
# <<: *codecode-runner <<: *codecode-runner
# script: script:
# - /opt/mssql/bin/sqlservr > /dev/null & - /opt/mssql/bin/sqlservr > /dev/null &
# - python3 testcases.py ci_test 2 - python3 testcases.py ci_test 2
# - diff output2.txt user_output2.txt -b -B -y -i -W 100 - diff output2.txt user_output2.txt -b -B -y -i -W 100
# - echo -e "\n*******************************************\nexec-score 80\n*******************************************\n" - echo -e "\n*******************************************\nexec-score 80\n*******************************************\n"
# only: only:
# - master - master
# allow_failure: false allow_failure: false
# teacher-check2: teacher-check2:
# image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest" image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest"
# stage: case2 stage: case2
# <<: *codecode-runner <<: *codecode-runner
# before_script: [] before_script: []
# script: script:
# - 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 -i - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -i
# - diff template/output2.txt output2.txt -b -B -i - diff template/output2.txt output2.txt -b -B -i
# only: only:
# - master - master
# when: manual when: manual
# allow_failure: true allow_failure: true
# case3: case3:
# stage: case3 stage: case3
# <<: *codecode-runner <<: *codecode-runner
# script: script:
# - /opt/mssql/bin/sqlservr > /dev/null & - /opt/mssql/bin/sqlservr > /dev/null &
# - python3 testcases.py ci_test 3 - python3 testcases.py ci_test 3
# - diff output3.txt user_output3.txt -b -B -y -i -W 100 - diff output3.txt user_output3.txt -b -B -y -i -W 100
# - echo -e "\n*******************************************\nexec-score 90\n*******************************************\n" - echo -e "\n*******************************************\nexec-score 90\n*******************************************\n"
# only: only:
# - master - master
# allow_failure: false allow_failure: false
# teacher-check3: teacher-check3:
# image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest" image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest"
# stage: case3 stage: case3
# <<: *codecode-runner <<: *codecode-runner
# before_script: [] before_script: []
# script: script:
# - 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 -i - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -i
# - diff template/output3.txt output3.txt -b -B -i - diff template/output3.txt output3.txt -b -B -i
# only: only:
# - master - master
# when: manual when: manual
# allow_failure: true allow_failure: true
case4: case4:
stage: case4 stage: case4
...@@ -96,26 +96,22 @@ case4: ...@@ -96,26 +96,22 @@ case4:
- export LANG="C.UTF-8" - export LANG="C.UTF-8"
- export LC_ALL="C.UTF-8" - export LC_ALL="C.UTF-8"
- python3 testcases.py ci_test 4 - python3 testcases.py ci_test 4
- cat user_output4.txt
- diff output4.txt user_output4.txt -b -B -y -i -W 100 - diff output4.txt user_output4.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 100\n*******************************************\n" - echo -e "\n*******************************************\nexec-score 100\n*******************************************\n"
# artifacts:
# paths:
# - user_output4.txt
only: only:
- master - master
allow_failure: false allow_failure: false
# teacher-check4: teacher-check4:
# image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest" image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest"
# stage: case4 stage: case4
# <<: *codecode-runner <<: *codecode-runner
# before_script: [] before_script: []
# script: script:
# - 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 -i - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -i
# - diff template/output4.txt output4.txt -b -B -i - diff template/output4.txt output4.txt -b -B -i
# only: only:
# - master - master
# when: manual when: manual
# allow_failure: true allow_failure: true
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论