diff --git a/.drone.yml b/.drone.yml index 4a4dd7c..526d05a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,23 @@ kind: pipeline type: docker -name: master +name: CI trigger: - branch: - - master event: - - push \ No newline at end of file + - push + +steps: + - name: build + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest + commands: + - cd GameAtlas/ + - dotnet restore GameAtlas.sln + - dotnet build GameAtlas.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 + + - name: tests + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest + commands: + - cd GameAtlas/ + - dotnet restore GameAtlas.sln + - dotnet test GameAtlas.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + depends_on: [build] \ No newline at end of file