diff options
| author | 刘学利 <[email protected]> | 2022-03-18 08:41:51 +0000 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2022-03-18 08:41:51 +0000 |
| commit | e8f6986877fb7ac7d388917c63ca845194648f1f (patch) | |
| tree | d00c513df49651db8cec56adc864ffde32068894 /.gitlab-ci.yml | |
| parent | 270a31cfaa6b5f7df8aab8fc7d39f63a23809071 (diff) | |
TSG-10007: SSL解析层增加测试用例v2.0.10
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b0aeae..223652c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,11 +8,51 @@ variables: INSTALL_PREFIX: "/home/mesasoft/sapp_run/" stages: -#- analysis +- analysis - build -#- test +- test - package +run_cppcheck_for_centos7: + stage: analysis + image: $BUILD_IMAGE_CENTOS7 + script: + - mkdir build || true + - cd build + - cmake3 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. + - cppcheck --project=compile_commands.json --enable=all --error-exitcode=1 --suppress=unusedFunction --suppress=missingInclude --suppress=uselessAssignmentPtrArg --suppress=unreachableCode + tags: + - share + +run_cppcheck_for_centos8: + stage: analysis + image: $BUILD_IMAGE_CENTOS8 + script: + - mkdir build || true + - cd build + - cmake3 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. + - cppcheck --project=compile_commands.json --enable=all --error-exitcode=1 --suppress=unusedFunction --suppress=missingInclude --suppress=uselessAssignmentPtrArg --suppress=unreachableCode + tags: + - share + +run_test_for_centos7: + stage: test + extends: .build_by_travis_for_centos7 + script: + - yum makecache + - ./ci/travis.sh + - cd build + - ctest --verbose + +run_test_for_centos8: + stage: test + extends: .build_by_travis_for_centos8 + script: + - yum makecache + - ./ci/travis.sh + - cd build + - ctest3 --verbose + .build_before_script: before_script: - mkdir -p $BUILD_PADDING_PREFIX/$CI_PROJECT_NAMESPACE/ |
