diff options
| author | luwenpeng <[email protected]> | 2024-08-14 10:43:25 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-08-14 17:25:46 +0800 |
| commit | 927d0cd3447246a4630525dc9589e3a9b32364e7 (patch) | |
| tree | 81276b6c9ae6073297fa2473bce7708c8251c1e8 | |
| parent | 2f89ea589a2b4ceab3822af5af89b2563de01165 (diff) | |
fix(CI): rename CentOS8 to RockyLinux
| -rw-r--r-- | .gitlab-ci.yml | 89 |
1 files changed, 44 insertions, 45 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf10c59..0f29299 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,9 +2,9 @@ variables: GIT_STRATEGY: "clone" BUILD_PADDING_PREFIX: /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX/ INSTALL_PREFIX: "/opt/tsg/stellar" - INSTALL_DEPENDENCY_LIBRARY: mrzcpd-corei7 framework_env libfieldstat4-devel + INSTALL_DEPENDENCY_LIBRARY: mrzcpd-corei7 framework_env libfieldstat4-devel TESTING_VERSION_BUILD: 0 - BUILD_IMAGE_CENTOS8: "git.mesalab.cn:7443/mesa_platform/build-env:rocky8-for-stellar" + BUILD_IMAGE_ROCKYLINUX: "git.mesalab.cn:7443/mesa_platform/build-env:rocky8-for-stellar" stages: - cppcheck @@ -18,26 +18,26 @@ stages: - cd $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH - yum makecache --disablerepo="*" --enablerepo="framework,platform" - yum install -y $INSTALL_DEPENDENCY_LIBRARY - - source /etc/profile.d/mrzcpd.sh - - source /etc/profile.d/framework.sh + - source /etc/profile.d/mrzcpd.sh + - source /etc/profile.d/framework.sh - chmod +x ./ci/travis.sh ############################################################################### -# cppcheck +# cppcheck ############################################################################### .cppcheck_script: - variables: + variables: BUILD_TYPE: Debug stage: cppcheck script: - mkdir build; cd build; cmake3 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. - > - cppcheck --project=compile_commands.json - --enable=all + cppcheck --project=compile_commands.json + --enable=all --std=c++11 - --error-exitcode=1 - --suppress=unusedFunction - --suppress=missingInclude + --error-exitcode=1 + --suppress=unusedFunction + --suppress=missingInclude --suppress=uselessAssignmentPtrArg --suppress=unmatchedSuppression --suppress=variableScope @@ -54,25 +54,24 @@ stages: tags: - share -run_cppcheck_for_centos8: +run_cppcheck_for_rockylinux: extends: .cppcheck_script - image: $BUILD_IMAGE_CENTOS8 + image: $BUILD_IMAGE_ROCKYLINUX ############################################################################### -# build +# build ############################################################################### - -.build_by_travis_for_centos8: - image: $BUILD_IMAGE_CENTOS8 +.build_by_travis_for_rockylinux: + image: $BUILD_IMAGE_ROCKYLINUX before_script: *everything_before_script script: - ./ci/travis.sh tags: - share -branch_build_debug_for_centos8: +branch_build_debug_for_rockylinux: stage: build - extends: .build_by_travis_for_centos8 + extends: .build_by_travis_for_rockylinux variables: BUILD_TYPE: Debug except: @@ -80,23 +79,23 @@ branch_build_debug_for_centos8: - /^release-.*$/i - tags -branch_build_release_for_centos8: +branch_build_release_for_rockylinux: stage: build variables: BUILD_TYPE: RelWithDebInfo - extends: .build_by_travis_for_centos8 + extends: .build_by_travis_for_rockylinux artifacts: name: "stellar-branch-$CI_COMMIT_REF_NAME-release" paths: - - build/* + - build/* except: - /^develop-.*$/i - /^release-.*$/i - tags -develop_build_debug_for_centos8: +develop_build_debug_for_rockylinux: stage: build - extends: .build_by_travis_for_centos8 + extends: .build_by_travis_for_rockylinux variables: TESTING_VERSION_BUILD: 1 BUILD_TYPE: Debug @@ -105,13 +104,13 @@ develop_build_debug_for_centos8: - /^develop-.*$/i - /^release-.*$/i -develop_build_release_for_centos8: +develop_build_release_for_rockylinux: stage: build - extends: .build_by_travis_for_centos8 + extends: .build_by_travis_for_rockylinux variables: TESTING_VERSION_BUILD: 1 - #ASAN_OPTION: ADDRESS BUILD_TYPE: RelWithDebInfo + #ASAN_OPTION: ADDRESS artifacts: name: "stellar-develop-$CI_COMMIT_REF_NAME-release" paths: @@ -120,19 +119,19 @@ develop_build_release_for_centos8: - /^develop-.*$/i - /^release-.*$/i -release_build_debug_for_centos8: +release_build_debug_for_rockylinux: stage: build variables: BUILD_TYPE: Debug - extends: .build_by_travis_for_centos8 + extends: .build_by_travis_for_rockylinux only: - tags -release_build_release_for_centos8: +release_build_release_for_rockylinux: stage: build variables: BUILD_TYPE: RelWithDebInfo - extends: .build_by_travis_for_centos8 + extends: .build_by_travis_for_rockylinux artifacts: name: "stellar-install-$CI_COMMIT_REF_NAME-release" paths: @@ -141,42 +140,42 @@ release_build_release_for_centos8: - tags ############################################################################### -# test +# test ############################################################################### -test_in_centos8: +test_in_rockylinux: stage: test - image: $BUILD_IMAGE_CENTOS8 + image: $BUILD_IMAGE_ROCKYLINUX allow_failure: false script: - *everything_before_script - cd build; ctest -V dependencies: - - branch_build_release_for_centos8 - - develop_build_release_for_centos8 - - release_build_release_for_centos8 + - branch_build_release_for_rockylinux + - develop_build_release_for_rockylinux + - release_build_release_for_rockylinux tags: - share ############################################################################### # upload ############################################################################### -.define_before_upload_centos8: +.define_before_upload_rockylinux: stage: upload - image: $BUILD_IMAGE_CENTOS8 + image: $BUILD_IMAGE_ROCKYLINUX before_script: - pwd; ls -l ; cd build ; ls -l - - cp /root/rpm_upload_tools.py ./ + - cp /root/rpm_upload_tools.py ./ variables: PULP3_REPO_NAME: stellar-stable-x86_64.el8 PULP3_DIST_NAME: stellar-stable-x86_64.el8 only: - tags tags: - - share + - share -rpm_upload_for_centos8: - extends: .define_before_upload_centos8 +rpm_upload_for_rockylinux: + extends: .define_before_upload_rockylinux dependencies: - - release_build_release_for_centos8 + - release_build_release_for_rockylinux script: - - python3 rpm_upload_tools.py $PULP3_REPO_NAME $PULP3_DIST_NAME *.rpm
\ No newline at end of file + - python3 rpm_upload_tools.py $PULP3_REPO_NAME $PULP3_DIST_NAME *.rpm
\ No newline at end of file |
