variables: GIT_STRATEGY: "clone" BUILD_IMAGE_CENTOS7: "git.mesalab.cn:7443/mesa_platform/build-env:master" BUILD_IMAGE_CENTOS8: "git.mesalab.cn:7443/mesa_platform/build-env:rockylinux" BUILD_PADDING_PREFIX: /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX/ INSTALL_DEPENDENCY_PLATFORM: sapp-devel libasan systemd-devel libnsl INSTALL_DEPENDENCY_FRAMEWORK: libMESA_handle_logger-devel libcjson-devel libMESA_field_stat2-devel framework_env libMESA_prof_load-devel libbreakpad_mini-devel libMESA_htable-devel INSTALL_PREFIX: "/home/mesasoft/sapp_run/" stages: - analysis - build - 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 --suppress=unreadVariable --suppress=unmatchedSuppression 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 --suppress=unreadVariable --suppress=unmatchedSuppression 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/ - ln -s $CI_PROJECT_DIR $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH - cd $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH - chmod +x ./ci/travis.sh - yum makecache - yum install -y elfutils-libelf-devel .build_by_travis_for_centos7: stage: build image: $BUILD_IMAGE_CENTOS7 extends: .build_before_script script: - ./ci/travis.sh - cd build tags: - share .build_by_travis_for_centos8: stage: build image: $BUILD_IMAGE_CENTOS8 extends: .build_before_script script: - ./ci/travis.sh tags: - share branch_build_debug_for_centos7: stage: build extends: .build_by_travis_for_centos7 variables: BUILD_TYPE: Debug except: - /^develop.*$/i - /^master.*$/i - tags branch_build_release_for_centos7: stage: build variables: BUILD_TYPE: RelWithDebInfo extends: .build_by_travis_for_centos7 except: - /^develop.*$/i - /^master.*$/i - tags develop_build_debug_for_centos7: stage: build extends: .build_by_travis_for_centos7 variables: BUILD_TYPE: Debug PACKAGE: 1 UPLOAD_RPM: 1 ASAN_OPTION: ADDRESS TESTING_VERSION_BUILD: 1 PULP3_REPO_NAME: protocol-testing-x86_64.el7 PULP3_DIST_NAME: protocol-testing-x86_64.el7 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-debug" paths: - build/*.rpm only: - /^develop.*$/i - /^master.*$/i develop_build_release_for_centos7: stage: build extends: .build_by_travis_for_centos7 variables: BUILD_TYPE: RelWithDebInfo PACKAGE: 1 UPLOAD_RPM: 1 TESTING_VERSION_BUILD: 1 PULP3_REPO_NAME: protocol-testing-x86_64.el7 PULP3_DIST_NAME: protocol-testing-x86_64.el7 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-release" paths: - build/*.rpm only: - /^develop.*$/i - /^master.*$/i release_build_debug_for_centos7: stage: package variables: BUILD_TYPE: Debug PACKAGE: 1 UPLOAD_RPM: 1 PULP3_REPO_NAME: protocol-stable-x86_64.el7 PULP3_DIST_NAME: protocol-stable-x86_64.el7 extends: .build_by_travis_for_centos7 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-debug" paths: - build/*.rpm only: - tags release_build_release_for_centos7: stage: package variables: BUILD_TYPE: RelWithDebInfo PACKAGE: 1 UPLOAD_RPM: 1 PULP3_REPO_NAME: protocol-stable-x86_64.el7 PULP3_DIST_NAME: protocol-stable-x86_64.el7 extends: .build_by_travis_for_centos7 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-release" paths: - build/*.rpm only: - tags branch_build_debug_for_centos8: stage: build extends: .build_by_travis_for_centos8 variables: BUILD_TYPE: Debug except: - /^develop.*$/i - /^master.*$/i - tags branch_build_release_for_centos8: stage: build variables: BUILD_TYPE: RelWithDebInfo extends: .build_by_travis_for_centos8 except: - /^develop.*$/i - /^master.*$/i - tags develop_build_debug_for_centos8: stage: build extends: .build_by_travis_for_centos8 variables: BUILD_TYPE: Debug PACKAGE: 1 UPLOAD_RPM: 1 ASAN_OPTION: ADDRESS TESTING_VERSION_BUILD: 1 PULP3_REPO_NAME: protocol-testing-x86_64.el8 PULP3_DIST_NAME: protocol-testing-x86_64.el8 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-debug" paths: - build/*.rpm only: - /^develop.*$/i - /^master.*$/i develop_build_release_for_centos8: stage: build extends: .build_by_travis_for_centos8 variables: BUILD_TYPE: RelWithDebInfo PACKAGE: 1 UPLOAD_RPM: 1 TESTING_VERSION_BUILD: 1 PULP3_REPO_NAME: protocol-testing-x86_64.el8 PULP3_DIST_NAME: protocol-testing-x86_64.el8 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-release" paths: - build/*.rpm only: - /^develop.*$/i - /^master.*$/i release_build_debug_for_centos8: stage: package variables: BUILD_TYPE: Debug PACKAGE: 1 UPLOAD_RPM: 1 PULP3_REPO_NAME: protocol-stable-x86_64.el8 PULP3_DIST_NAME: protocol-stable-x86_64.el8 extends: .build_by_travis_for_centos8 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-debug" paths: - build/*.rpm only: - tags release_build_release_for_centos8: stage: package variables: BUILD_TYPE: RelWithDebInfo PACKAGE: 1 UPLOAD_RPM: 1 PULP3_REPO_NAME: protocol-stable-x86_64.el8 PULP3_DIST_NAME: protocol-stable-x86_64.el8 extends: .build_by_travis_for_centos8 artifacts: name: "ssl-$CI_COMMIT_REF_NAME-release" paths: - build/*.rpm only: - tags