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

modify_ci

上级 215ebf27
...@@ -44,7 +44,7 @@ code-analysis: ...@@ -44,7 +44,7 @@ code-analysis:
- mkdir -p build - mkdir -p build
- cppcheck -v --force --enable=all --xml -I./ ./ 2> ./build/cppcheck-report.xml - 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' - 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 - 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 - 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 allow_failure: true
only: only:
...@@ -61,12 +61,12 @@ case1: ...@@ -61,12 +61,12 @@ case1:
only: only:
- master - master
teacher-check1: teacher-check1:
stage: case1 stage: case1
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input1.txt - ./app < input1.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input1.txt input1.txt -b -B -y -i -W 100 - diff template/input1.txt input1.txt -b -B -y -i -W 100
...@@ -97,7 +97,7 @@ teacher-check2: ...@@ -97,7 +97,7 @@ teacher-check2:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input2.txt - ./app < input2.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input2.txt input2.txt -b -B -y -i -W 100 - diff template/input2.txt input2.txt -b -B -y -i -W 100
...@@ -128,7 +128,7 @@ teacher-check3: ...@@ -128,7 +128,7 @@ teacher-check3:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input3.txt - ./app < input3.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input3.txt input3.txt -b -B -y -i -W 100 - diff template/input3.txt input3.txt -b -B -y -i -W 100
...@@ -159,7 +159,7 @@ teacher-check4: ...@@ -159,7 +159,7 @@ teacher-check4:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input4.txt - ./app < input4.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input4.txt input4.txt -b -B -y -i -W 100 - diff template/input4.txt input4.txt -b -B -y -i -W 100
...@@ -190,7 +190,7 @@ teacher-check5: ...@@ -190,7 +190,7 @@ teacher-check5:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input5.txt - ./app < input5.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input5.txt input5.txt -b -B -y -i -W 100 - diff template/input5.txt input5.txt -b -B -y -i -W 100
...@@ -221,7 +221,7 @@ teacher-check6: ...@@ -221,7 +221,7 @@ teacher-check6:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input6.txt - ./app < input6.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input6.txt input6.txt -b -B -y -i -W 100 - diff template/input6.txt input6.txt -b -B -y -i -W 100
...@@ -252,7 +252,7 @@ teacher-check7: ...@@ -252,7 +252,7 @@ teacher-check7:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input7.txt - ./app < input7.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input7.txt input7.txt -b -B -y -i -W 100 - diff template/input7.txt input7.txt -b -B -y -i -W 100
...@@ -283,7 +283,7 @@ teacher-check8: ...@@ -283,7 +283,7 @@ teacher-check8:
<<: *codecode-runner <<: *codecode-runner
script: script:
- make - make
- ./app < input8.txt - ./app < input8.txt > /dev/null
- 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 -W 100 - diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i -W 100
- diff template/input8.txt input8.txt -b -B -y -i -W 100 - diff template/input8.txt input8.txt -b -B -y -i -W 100
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论