diff --git a/.cloudbuild/bench.yml b/.cloudbuild/bench.yml deleted file mode 100644 index f4883d11..00000000 --- a/.cloudbuild/bench.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: 2.0 -notifications: - notifier: - espace: - true: false - email: - true: false -params: - - name: build_system - value: build2 -env: - resource: - image: kweecr02.his.huawei.com:80/ecr-build/cloudsop_javascript_test:cloudsop_javascript_test - type: docker - class: 4U8G -steps: - PRE_BUILD: - - checkout: - path: horizon-core - - gitlab: - url: https://szv-open.codehub.huawei.com/innersource/shanhai/wutong/react/horizon-test.git - branch: one_tree_dev - path: horizon-test - BUILD: - - build_execute: - command: | - yarn config set strict-ssl false - cd horizon-core - yarn - cd ../horizon-test - yarn - yarn run test -buildspace: - fixed: true diff --git a/.cloudbuild/build.yml b/.cloudbuild/build.yml deleted file mode 100644 index 223629f5..00000000 --- a/.cloudbuild/build.yml +++ /dev/null @@ -1,42 +0,0 @@ -version: '2.0' -notifications: - notifier: - espace: - 'on': false - email: - 'on': false -buildspace: - log_collect: - - config/CI/build/logs - fixed: false -env: - resource: - type: docker - image: kweecr04.his.huawei.com:80/ecr-build-arm-gzkunpeng/euleros_v2r7spc522_x64_opmt_cs5.0_sz:v5.0 - class: 4U8G - mode: toolbox -steps: - PRE_BUILD: - - checkout: - path: horizon-core - - gitlab: - url: https://szv-y.codehub.huawei.com/CloudSOP/CloudSOP-CI.git - branch: master - path: CI - BUILD: - - build_execute: - command: | - npm install yarn -g - yarn config set strict-ssl false - cd horizon-core - yarn - yarn run test - yarn run build - sh .cloudbuild/release.sh - enhance: - - feature: md5_source_tracement - build_tools: [npm] - check: - auto: true - buildcheck: true - mode: sync diff --git a/.cloudbuild/codecheck.yaml b/.cloudbuild/codecheck.yaml deleted file mode 100644 index 7bdf6bd4..00000000 --- a/.cloudbuild/codecheck.yaml +++ /dev/null @@ -1,81 +0,0 @@ -version: 2.0 -workspace: - path: "/usr1" -env: - resource: - type: docker - image: szvecr02.his.huawei.com:80/ecr-build/euleros_v2r7spc522_x64_opmt_cs6.0:v3.0 # codecheck检查因执行资源因素一直使用苏州镜像,保证机器数量、缓存等检查效率稳定 - cache: - - type: workspaceCompile # 缓存功能 -params: - - name: pkg_model - value: VM - - name: ci_package_name - value: "" - - name: checkRoot - value: ./ - - name: os_type - value: euler - - name: enable_parallel_compile - value: true #mr检查模式后两种,会按语言拆出来。目前只拆C和JAVA -steps: - pre_codecheck: - - checkout: - url: ${ci_service_git_address} - branch: $branch - path: code - - gitlab: - url: https://szv-y.codehub.huawei.com/CloudSOP/CloudSOP-CI.git - branch: master - path: CI - - artget: - artifact_type: cmcbinary - action: pull - dependency: CI/build/tool/cmc/download_second_party_dependency_vm.xml - agent: CloudSOP_Platform - username: pspoictosys - password: encryption:ETMsDgAAAX+0YduoABRBRVMvQ0JDL1BLQ1M1UGFkZGluZwCAABAAEFvVh+8WgSL6OkFCfxYKvXcAAAAgVHmrmjYjGKKiMhNJ0i2zKofacS6/XTl7PgfzrjiJcTEAFJ3oc6PjsgLaOhXlddtsyBp5I1qL - - artget: - artifact_type: opensource - action: pull - dependency: CI/build/tool/cmc/download_opensource_cmc_dependency.xml - agent: opensource_cmc - username: pspoictosys - password: encryption:ETMsDgAAAX+0YduoABRBRVMvQ0JDL1BLQ1M1UGFkZGluZwCAABAAEFvVh+8WgSL6OkFCfxYKvXcAAAAgVHmrmjYjGKKiMhNJ0i2zKofacS6/XTl7PgfzrjiJcTEAFJ3oc6PjsgLaOhXlddtsyBp5I1qL - - sh: # 两层门禁场景需要进行代码预合并操作,目前通过CodeCCP注入参数实现场景区分,正常MR和版本级检查没有“codecheckVersionScan”环境变量 - command: | - if [[ "${codecheckVersionScan}" == "true" ]];then - sh ${WORKSPACE}/CI/build/bin/codecheck/code_merge.sh - fi - - sh: - command: ${ci_clang_shell_cmd} - effect_tool: pclint-plus,clangtidy - - sh: - command: | - sh ${WORKSPACE}/CI/build/bin/codecheck/build_codecheck.sh ${ci_package_name} - effect_tool: spotbugs,sonarqube,binscope -tool_params: - secsolar: - compile_script: sh ${WORKSPACE}/CI/build/bin/codecheck/buildSecsolar.sh ${ci_package_name} - secbrella: - compile_scripts: - - language: java - compile_script: ../CI/build/bin/codecheck/buildSecsolar.sh bazel-json ${ci_package_name} - fortify: - custom_params: - exclude: '**/test/**/*.py:**/CI/**/*.py' - compile_scripts: - - language: python - compile_script: ../CI/build/bin/codecheck/fortify_python.sh - clangtidy: - compilerCommandsPath: ${WORKSPACE}/CI/build/bin/codecheck/compile_commands.json - pclint-plus: - lntPath: ${WORKSPACE}/CI/build/bin/codecheck/ - lntMain: project.lnt - lntEnv: PROJECTROOT=./ - compiler: ${WORKSPACE}/CI/build/bin/codecheck/co-gcc.lnt - spotbugs: - isIncAnalysis: true # 开启后,支持按变更文件进行spotbugs检查,不需要可以删除 - binscope: - scan_dirs: ${ci_package_name} - relative_dir: ${ci_package_name} \ No newline at end of file diff --git a/.cloudbuild/release.sh b/.cloudbuild/release.sh deleted file mode 100644 index d82fe7fb..00000000 --- a/.cloudbuild/release.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2020 Huawei Technologies Co.,Ltd. -# -# InulaJS is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# You may obtain a copy of Mulan PSL v2 at: -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# -if [ -n "${releaseVersion}" ] ; then - echo "==== Horizon Upgrade ${releaseVersion} ====" - cd ./build/horizon || { echo 'ERROR: Build directory not found' ; exit 1; } - - cd umd - # umd鐢熶骇鍖呭鏆撮湶鍏ㄥ眬鍚岺orizonDOM - # 浠ヨВ鍐硍ebpack鐨別xternals react-dom鍜宺eact閮芥寚鍚慔orizon鏃,webpack闅忔満浣跨敤key鍚嶉犳垚婧愮爜浜や粯闂 - sed -i '$a window.HorizonDOM = window.Horizon;' horizon.production.min.js - cd - - - # 鍐欏叆鏂扮増鏈彿 - npm version "${releaseVersion}" - cat >.npmrc <<- EndOfMessage -registry=https://cmc.centralrepo.rnd.huawei.com/npm -@cloudsop:registry=https://cmc.centralrepo.rnd.huawei.com/artifactory/api/npm/product_npm -_auth = Y2xvdWRzb3BhcnRpZmFjdG9yeTpDbG91ZHNvcDY2NiEhIQ -always-auth = true -email = cloudsop@huawei.com -EndOfMessage - - echo "==== Publish new version====" - - npm publish - npm view @cloudsop/horizon@"${releaseVersion}" -else - echo "No release version, quit." -fi - diff --git a/.cloudbuild/test.yml b/.cloudbuild/test.yml deleted file mode 100644 index 0593afd8..00000000 --- a/.cloudbuild/test.yml +++ /dev/null @@ -1,37 +0,0 @@ -version: '2.0' -notifications: - notifier: - espace: - 'on': false - email: - 'on': false -buildspace: - log_collect: - - config/CI/build/logs - fixed: true -env: - resource: - type: docker - image: kweecr04.his.huawei.com:80/ecr-build-arm-gzkunpeng/euleros_v2r7spc522_x64_opmt_cs5.0_sz:v5.0 - class: 4U8G - mode: toolbox - cache: - - type: workspace -steps: - PRE_BUILD: - - checkout: - path: horizon-core - - gitlab: - url: https://szv-open.codehub.huawei.com/innersource/shanhai/wutong/react/horizon-test.git - branch: one_tree_dev - path: horizon-test - BUILD: - - build_execute: - command: | - npm install yarn -g - yarn config set strict-ssl false - cd horizon-core - yarn - cd ../horizon-test - yarn - yarn run test