|
|
|
|
|
|
image: package-ci/mac:v1.18.3-973558 |
|
|
|
flavor: m1.mac |
|
|
|
variables: |
|
|
|
PROJECT_DIR: InverseDynamicsDemoProject |
|
|
|
SONARQUBE_PROJECT_KEY: ai-robotics-inverse-dynamics-csharp |
|
|
|
SONARQUBE_PROJECT_BASE_DIR: /Users/bokken/build/output/Unity-Technologies/ |
|
|
|
MSBUILD_SLN_PATH: ./unity-inverse-dynamics-demo.sln |
|
|
|
|
|
|
- curl https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/5.2.1.31210/sonar-scanner-msbuild-5.2.1.31210-net46.zip -o sonar-scanner-msbuild-net46.zip -L |
|
|
|
- unzip sonar-scanner-msbuild-net46.zip -d ~/sonar-scanner-msbuild |
|
|
|
- chmod a+x ~/sonar-scanner-msbuild/sonar-scanner-4.6.1.2450/bin/sonar-scanner |
|
|
|
- .Editor/Unity.app/Contents/MacOS/Unity -batchmode -quit -nographics -logFile - -executeMethod "UnityEditor.SyncVS.SyncSolution" |
|
|
|
- .Editor/Unity.app/Contents/MacOS/Unity -batchmode -projectPath $PROJECT_DIR -quit -nographics -logFile - -executeMethod "UnityEditor.SyncVS.SyncSolution" |
|
|
|
cd $PROJECT_ROOT |
|
|
|
cd $PROJECT_DIR |
|
|
|
cd $PROJECT_ROOT |
|
|
|
- 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 |
|
|
|