|
|
@ -8,31 +8,31 @@ trigger:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
- name: build
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/
|
|
|
|
- cd Sources/
|
|
|
|
- dotnet restore Stim.sln
|
|
|
|
- dotnet restore TestPipeline.sln
|
|
|
|
- dotnet build Stim.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
- dotnet build TestPipeline.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
- dotnet publish Stim/Stim.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
|
|
|
- dotnet publish Stim/TestPipeline.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
|
|
|
|
|
|
|
|
|
|
|
- name: tests
|
|
|
|
- name: tests
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/
|
|
|
|
- cd Sources/
|
|
|
|
- dotnet restore Stim.sln
|
|
|
|
- dotnet restore TestPipeline.sln
|
|
|
|
- dotnet test Stim.sln --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
- dotnet test TestPipeline.sln --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
depends_on: [build]
|
|
|
|
depends_on: [build]
|
|
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
- name: code-analysis
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/
|
|
|
|
- cd Sources/
|
|
|
|
- dotnet restore Stim.sln
|
|
|
|
- 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 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 Stim.sln -c Release --no-restore
|
|
|
|
- dotnet build TestPipeline.sln -c Release --no-restore
|
|
|
|
- dotnet test Stim.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
|
|
|
- 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"
|
|
|
|
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
|
|
|
- dotnet publish Stim.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet publish TestPipeline.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
secrets: [ SECRET_SONAR_LOGIN ]
|
|
|
|
secrets: [ SECRET_SONAR_LOGIN ]
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|