|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: Wikipet's_without_views.sln
|
|
|
|
|
name: Wikipets_without_views.sln
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
event:
|
|
|
|
@ -11,17 +11,16 @@ steps:
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
|
commands:
|
|
|
|
|
- cd Sources/
|
|
|
|
|
- dotnet restore Wikipet's_without_views.sln
|
|
|
|
|
- dotnet build Wikipet's_without_views.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
|
- dotnet publish Wikipet's_without_views.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
|
- dotnet restore Wikipets_without_views.sln
|
|
|
|
|
- dotnet build Wikipets_without_views.sln -c Release --no-restore
|
|
|
|
|
depends_on: [clone]
|
|
|
|
|
|
|
|
|
|
#- name: tests
|
|
|
|
|
# image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
|
# commands:
|
|
|
|
|
# - cd Sources/
|
|
|
|
|
# - dotnet restore Wikipet's_without_views.sln
|
|
|
|
|
# - dotnet test Wikipet's_without_views.sln --no-restore
|
|
|
|
|
# - dotnet restore Wikipets_without_views.sln
|
|
|
|
|
# - dotnet test Wikipets_without_views.sln --no-restore
|
|
|
|
|
# depends_on: [build]
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
@ -35,30 +34,30 @@ steps:
|
|
|
|
|
coverage_exclusions: "Tests/**"
|
|
|
|
|
commands:
|
|
|
|
|
- cd Sources/
|
|
|
|
|
- dotnet restore Wikipet's_without_views.sln
|
|
|
|
|
- dotnet restore Wikipets_without_views.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 Wikipet's_without_views.sln -c Release --no-restore
|
|
|
|
|
#- dotnet test Wikipet's_without_views.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
|
|
|
|
- dotnet build Wikipets_without_views.sln -c Release --no-restore
|
|
|
|
|
#- dotnet test Wikipets_without_views.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 Wikipet's_without_views.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
|
- dotnet publish Wikipets_without_views.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${sonar_token}
|
|
|
|
|
depends_on: [build]
|
|
|
|
|
|
|
|
|
|
#- name: generate-and-deploy-docs
|
|
|
|
|
# image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
|
|
|
|
# failure: ignore
|
|
|
|
|
# volumes:
|
|
|
|
|
# - name: docs
|
|
|
|
|
# path: /docs
|
|
|
|
|
# commands:
|
|
|
|
|
#- cd Documentation/doxygen
|
|
|
|
|
#- doxygen Doxyfile
|
|
|
|
|
# - /entrypoint.sh
|
|
|
|
|
# when:
|
|
|
|
|
# branch:
|
|
|
|
|
# - master
|
|
|
|
|
# depends_on: [ build ]
|
|
|
|
|
- name: generate-and-deploy-docs
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
|
|
|
|
failure: ignore
|
|
|
|
|
volumes:
|
|
|
|
|
- name: docs
|
|
|
|
|
path: /docs
|
|
|
|
|
commands:
|
|
|
|
|
- cd Documentation/doxygen
|
|
|
|
|
- doxygen Doxyfile
|
|
|
|
|
- /entrypoint.sh
|
|
|
|
|
when:
|
|
|
|
|
branch:
|
|
|
|
|
- master
|
|
|
|
|
depends_on: [ build ]
|
|
|
|
|
|
|
|
|
|
#volumes:
|
|
|
|
|
#- name: docs
|
|
|
|
|
# temp: {}
|
|
|
|
|
volumes:
|
|
|
|
|
- name: docs
|
|
|
|
|
temp: {}
|
|
|
|
|