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

1

上级 d8016400
流水线 #118214 已失败 于阶段
用时 1 分 54 秒
......@@ -3,6 +3,7 @@ stages:
- case1
- case2
- case3
- case4
.codecode-runner: &codecode-runner
tags:
......@@ -68,7 +69,7 @@ case3:
- /opt/mssql/bin/sqlservr > /dev/null &
- python3 testcases.py ci_test 3
- diff output3.txt user_output3.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 100\n*******************************************\n"
- echo -e "\n*******************************************\nexec-score 90\n*******************************************\n"
only:
- master
allow_failure: false
......@@ -86,3 +87,29 @@ teacher-check3:
- master
when: manual
allow_failure: true
case4:
stage: case4
<<: *codecode-runner
script:
- /opt/mssql/bin/sqlservr > /dev/null &
- python3 testcases.py ci_test 4
- diff output4.txt user_output4.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 100\n*******************************************\n"
only:
- master
allow_failure: false
teacher-check4:
image: "registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest"
stage: case4
<<: *codecode-runner
before_script: []
script:
- 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/output4.txt output4.txt -b -B -i
only:
- master
when: manual
allow_failure: true
-- 每次建库前先将原来的库删掉
-- IF object_id('TPCH') IS NOT NULL
-- USE master;
-- ALTER DATABASE TPCH SET SINGLE_USER WITH ROLLBACK IMMEDIATE
-- DROP DATABASE TPCH
IF EXISTS ( SELECT [name] FROM sys.databases WHERE [name] = 'TPCH' )
DROP DATABASE TPCH
-- DROP DATABASE IF EXISTS TPCH
CREATE DATABASE TPCH
regionkey,name,comment
1,亚洲 ,亚洲地区
2,欧洲 ,欧洲地区
3,北美洲 ,北美洲地区
4,更改非洲 ,南非
\ No newline at end of file
添加文件
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论