test drone
continuous-integration/drone/push Build is failing Details

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent bded1305dd
commit 1a4d618b5f

@ -20,28 +20,25 @@ steps:
commands: commands:
- cd Sources/TestPipeline/ - cd Sources/TestPipeline/
- dotnet restore TestPipeline.sln - dotnet restore TestPipeline.sln
- dotnet test TestPipeline.sln --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 - dotnet test TestPipeline.sln --no-restore
depends_on: [build] depends_on: [build]
- name: code-analysis - name: code-inspection
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7 image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
commands: secrets: [ sqp_510ed0c5c5a51a133ba1e9869badfb95eb59f103 ]
- cd Sources/TestPipeline/
- dotnet restore TestPipeline.sln
- dotnet sonarscanner begin /k:Projet_IHM /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
- dotnet build TestPipeline.sln -c Release --no-restore
- dotnet test TestPipeline.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- dotnet publish TestPipeline.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
secrets: [ SECRET_SONAR_LOGIN ]
settings: settings:
# accessible en ligne de commande par ${PLUGIN_SONAR_HOST} sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_host: https://codefirst.iut.uca.fr/sonar/ sonar_token: squ_d866793a3b95dfcbbf704a82e7c5df747352bbbb
# accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN} from_secret: sqp_510ed0c5c5a51a133ba1e9869badfb95eb59f103
sonar_token: commands:
from_secret: SECRET_SONAR_LOGIN - cd Sources/TestPipeline/
depends_on: [tests] - dotnet restore TestPipeline.sln
- dotnet sonarscanner begin /k:MyProjectKey /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${squ_d866793a3b95dfcbbf704a82e7c5df747352bbbb}
- dotnet build TestPipeline.sln -c Release --no-restore
- dotnet test TestPipeline.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- dotnet publish TestPipeline.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${squ_d866793a3b95dfcbbf704a82e7c5df747352bbbb}
- name: generate-and-deploy-docs - name: generate-and-deploy-docs
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer

Loading…
Cancel
Save