Ajout des modification de solution pour la CI
continuous-integration/drone/push Build is failing Details

pull/55/head
Rémi LAVERGNE 12 months ago
parent 25de8c03d3
commit bc3b6fe783

@ -5,25 +5,46 @@ name: CI
trigger:
when:
branch:
- master
- dev
event:
- push
include:
- master
- dev
- CI/CD
event:
- push
steps:
- name: build
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet8-maui:latest
- name: build-Models
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- cd source/Trek-12
- dotnet restore Trek-12.sln
- dotnet build Trek-12.sln -c Release --no-restore
- dotnet publish Trek-12/Trek-12.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release
- cd source/Trek-12/Models
- dotnet restore
- dotnet build -c Release --no-restore
- dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release
- name: tests
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- cd source/Trek-12
- dotnet restore Trek-12.sln
- dotnet test Trek-12.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
depends_on: [build]
- dotnet restore CI-Trek-12.sln
- dotnet test CI-Trek-12.sln --no-restore
depends_on: [build-Models]
- name: code-analysis
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet8-maui
secrets: [ SECRET_SONAR_LOGIN ]
settings:
# accessible en ligne de commande par ${PLUGIN_SONAR_HOST}
sonar_host: https://codefirst.iut.uca.fr/sonar/
# accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN}
sonar_token:
from_secret: SECRET_SONAR_LOGIN
commands:
- cd source/Trek-12
- dotnet restore CI-Trek-12.sln
- dotnet sonarscanner begin /k:"Trek-12" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
- dotnet build CI-Trek-12.sln -c Release --no-restore
- dotnet test CI-Trek-12.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
- reportgenerator -reports:"Tests/TestResults/**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- dotnet publish Trek-12/Trek-12.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net8.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
depends_on: [tests]

@ -0,0 +1,41 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34408.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "Models\Models.csproj", "{807AB723-7AD3-42DD-9DA6-7AA5B0A9AAB4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{383C4215-C680-4C2E-BC7E-B62F0B164370}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{41EE7BF8-DDE6-4B00-9434-076589C0B419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{41EE7BF8-DDE6-4B00-9434-076589C0B419}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41EE7BF8-DDE6-4B00-9434-076589C0B419}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{41EE7BF8-DDE6-4B00-9434-076589C0B419}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41EE7BF8-DDE6-4B00-9434-076589C0B419}.Release|Any CPU.Build.0 = Release|Any CPU
{41EE7BF8-DDE6-4B00-9434-076589C0B419}.Release|Any CPU.Deploy.0 = Release|Any CPU
{807AB723-7AD3-42DD-9DA6-7AA5B0A9AAB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{807AB723-7AD3-42DD-9DA6-7AA5B0A9AAB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{807AB723-7AD3-42DD-9DA6-7AA5B0A9AAB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{807AB723-7AD3-42DD-9DA6-7AA5B0A9AAB4}.Release|Any CPU.Build.0 = Release|Any CPU
{795F2C88-3C43-4795-9764-E52F7330888D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{795F2C88-3C43-4795-9764-E52F7330888D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{795F2C88-3C43-4795-9764-E52F7330888D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{795F2C88-3C43-4795-9764-E52F7330888D}.Release|Any CPU.Build.0 = Release|Any CPU
{383C4215-C680-4C2E-BC7E-B62F0B164370}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{383C4215-C680-4C2E-BC7E-B62F0B164370}.Debug|Any CPU.Build.0 = Debug|Any CPU
{383C4215-C680-4C2E-BC7E-B62F0B164370}.Release|Any CPU.ActiveCfg = Release|Any CPU
{383C4215-C680-4C2E-BC7E-B62F0B164370}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {50EAA59B-6857-44DC-86B9-E8D258C0DC86}
EndGlobalSection
EndGlobal
Loading…
Cancel
Save