diff --git a/.drone.yml b/.drone.yml index 402c35c..61cd92a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,20 +9,20 @@ steps: - ls - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -executeMethod GitTools.Solution.Sync -quit - cat Assembly-CSharp.csproj - - sed -i 's/4.7.1/6.0/g' Assembly-CSharp.csproj + - sed -i 's/4.7.1/7.0/g' Assembly-CSharp.csproj - cat Assembly-CSharp.csproj - name: code-analysis pull: if-not-exists - image: mcr.microsoft.com/dotnet/aspnet:6.0 + image: FROM ghcr.io/nosinovacao/dotnet-sonar:latest commands: - - apt-get update && apt-get install -y unzip - - export PATH="$PATH:/root/.dotnet/tools" + # - apt-get update && apt-get install -y unzip + # - export PATH="$PATH:/root/.dotnet/tools" - rm src.sln - rm Assembly-CSharp-Editor.csproj # - rm Assembly-CSharp.csproj - cat Assembly-CSharp.csproj - ls - - dotnet tool install --global dotnet-sonarscanner + # - dotnet tool install --global dotnet-sonarscanner - dotnet sonarscanner begin /k:"$SONAR_PROJECT_KEY" /d:sonar.host.url="$SONAR_HOST" /d:sonar.login="$SONAR_TOKEN" /d:sonar.branch.name="$DRONE_REPO_BRANCH" /d:sonar.analysis.mode=preview - dotnet restore - dotnet build