Merge drone-activation -> dev-model-tu
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
8cf6743bae
@ -0,0 +1,42 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: CI_Linaris_pipeline
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
||||
commands:
|
||||
- cd Sources/
|
||||
- dotnet restore Linaris.sln
|
||||
- dotnet build Linaris.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
||||
- dotnet publish Linaris/Linaris.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
||||
# - name: tests
|
||||
# image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
||||
# commands:
|
||||
# - cd Sources/
|
||||
# - dotnet restore Linaris.sln
|
||||
# - dotnet test Linaris.sln --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
||||
# depends_on: [build]
|
||||
# - name: code-inspection
|
||||
# image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7-maui
|
||||
# secrets: [ SECRET_SONAR_LOGIN ]
|
||||
# environment:
|
||||
# sonar_host: https://codefirst.iut.uca.fr/sonar/
|
||||
# sonar_token:
|
||||
# from_secret: SECRET_SONAR_LOGIN
|
||||
# project_key: Linaris_LEMAIRE_LABORIE
|
||||
# coverage_exclusions: "Tests/**"
|
||||
# commands:
|
||||
# - cd Sources/
|
||||
# - dotnet restore Linaris.sln
|
||||
# - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token}
|
||||
# - dotnet build Linaris.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
||||
# - dotnet test Linaris.sln --logger trx --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
||||
# - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
||||
# - dotnet publish MauiApp/MauiApp.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
||||
# - dotnet sonarscanner end /d:sonar.login=$${sonar_token}
|
||||
# depends on: [tests]
|
Loading…
Reference in new issue