From ad336d48f3842be787f50793748bb8e1416e0daf Mon Sep 17 00:00:00 2001 From: clchieu Date: Tue, 20 Feb 2024 23:34:29 +0100 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20:construction:=20D?= =?UTF-8?q?=C3=A9but=20de=20la=20ci/cd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 drone.yml diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..e104556 --- /dev/null +++ b/drone.yml @@ -0,0 +1,23 @@ +kind: pipeline +type: docker +name: SQLuedoCICD + +trigger: + event: + - push + +steps: + - name: build + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - cd API_SQLuedo/ + - dotnet restore API_SQLuedo.sln + - dotnet build API_SQLuedo.sln -c Release --no-restore + + - name: tests + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - cd API_SQLuedo/ + - dotnet test API_SQLuedo.sln -c Release --no-build --no-restore + depends_on: + - [build] \ No newline at end of file