浏览代码

Update sonar.yml

/main/sonarqube
GitHub 3 年前
当前提交
6a6f38d8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      .yamato/sonar.yml

4
.yamato/sonar.yml


SONARQUBE_PROJECT_KEY: ai-robotics-inverse-dynamics-csharp
SONARQUBE_PROJECT_BASE_DIR: /Users/bokken/build/output/Unity-Technologies/
MSBUILD_SLN_PATH: ./InverseDynamicsDemoProject/unity-inverse-dynamics-demo.sln
PROJECT_ROOT: /Users/bokken/build/output/Unity-Technologies
PROJECT_RELATIVE_PATH: ../
UNITY_VERSION: 2022.1.0a16
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.it.unity3d.com/artifactory/api/npm/upm-npm

- command: |
cd $PROJECT_DIR
for file in *.csproj; do sed -i.backup "s/^[[:blank:]]*<ReferenceOutputAssembly>false<\/ReferenceOutputAssembly>/<ReferenceOutputAssembly>true<\/ReferenceOutputAssembly>/g" $file; rm $file.backup; done
cd $PROJECT_ROOT
cd $ROOT_RELATIVE_PATH
- mono ~/sonar-scanner-msbuild/SonarScanner.MSBuild.exe begin /k:$SONARQUBE_PROJECT_KEY /d:sonar.host.url=$SONARQUBE_ENDPOINT_URL_PRD /d:sonar.login=$SONARQUBE_TOKEN_PRD /d:sonar.projectBaseDir=$SONARQUBE_PROJECT_BASE_DIR
- msbuild $MSBUILD_SLN_PATH
- mono ~/sonar-scanner-msbuild/SonarScanner.MSBuild.exe end /d:sonar.login=$SONARQUBE_TOKEN_PRD

正在加载...
取消
保存