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

modify

上级 3a5bbf01
image: "registry.cn-hangzhou.aliyuncs.com/engintime/ubuntu_16.04_program:latest" image: "registry.cn-hangzhou.aliyuncs.com/engintime/ubuntu_16.04_program:latest"
stages: stages:
- make - make
- code-analysis
- case1 - case1
- case2 - case2
- case3 - case3
...@@ -19,12 +18,6 @@ before_script: ...@@ -19,12 +18,6 @@ before_script:
- ubuntu-16.04 - ubuntu-16.04
- short-job - short-job
.codecode-analysis-runner: &codecode-analysis-runner
tags:
- ubuntu-16.04
- short-job
- code-analysis
make: make:
stage: make stage: make
<<: *codecode-runner <<: *codecode-runner
...@@ -33,20 +26,7 @@ make: ...@@ -33,20 +26,7 @@ make:
- execscore.sh 60 - execscore.sh 60
only: only:
- master - master
code-analysis:
stage: code-analysis
<<: *codecode-analysis-runner
script:
- mkdir -p build
- cppcheck -v --force --enable=all --xml -I./ ./ 2> ./build/cppcheck-report.xml
- bash -c 'find ./ -regex ".*\.c\|.*\.h" | vera++ -S -s -d -c ./build/vera-report.xml'
- valgrind --xml=yes --xml-file=./build/valgrind-report.xml ./app input1.txt > /dev/null
- sonar-scanner -Dsonar.projectKey=ProjectKey-$CI_PROJECT_ID -Dsonar.projectName=$CI_PROJECT_NAME -Dsonar.links.homepage=$CI_PROJECT_URL -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.url=$CODECODE_PROTOCOL$CODECODE_DOMAIN
allow_failure: true
only:
- master
case1: case1:
stage: case1 stage: case1
<<: *codecode-runner <<: *codecode-runner
......
...@@ -7,4 +7,4 @@ if 0 < x then /* don't compute if x <= 0 */ ...@@ -7,4 +7,4 @@ if 0 < x then /* don't compute if x <= 0 */
until until
x = 0; x = 0;
write fact // output factorial of x write fact // output factorial of x
end end
\ No newline at end of file
# 教师参考答案
请教师用户首先访问[教师项目群组](https://www.codecode.net/engintime/cp-lab/teachers-packet),申请权限并审核通过后,再[domain relative url](engintime/cp-lab/teachers-packet/Lab03.git)访问本项目的参考答案
\ No newline at end of file
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论