From 10936519c881bfc7d9d21b4ffc4eb8b480b8d6ae Mon Sep 17 00:00:00 2001 From: Jade VAN BRABANDT Date: Tue, 19 Dec 2023 14:36:13 +0100 Subject: [PATCH] Test : Testing stuff with drone --- .drone.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0ffbc42..94312e2 100755 --- a/.drone.yml +++ b/.drone.yml @@ -1,17 +1,24 @@ kind: pipeline type: docker - +name: CI + trigger: event: - push steps: - - name: sonar - image: sonarsource/sonar-scanner-cli:5 + - name: build + image: mcr.microsoft.com/dotnet/sdk:7.0 + commands: + - cd Sources + - dotnet restore Blazor.sln + - dotnet build Blazor.sln -c Release --no-restore + - dotnet publish Blazor.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release + + - name: tests + image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - - sonar-scanner -Dsonar.projectKey=MuscuMaths -Dsonar.sources=. -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.host.url=$${PLUGIN_SONAR_HOST} -Dsonar.php.coverage.reportPaths=coverage.xml - settings: - sonar_host: - from_secret: sonar_host - sonar_token: - from_secret: sonar_token \ No newline at end of file + - cd Sources/ + - dotnet restore Blazor.sln + - dotnet test Blazor.sln --no-restore + depends_on: [build] \ No newline at end of file