From d4930629ba0a65396aff055cb42b0f1234290d90 Mon Sep 17 00:00:00 2001
From: Anthony <bouillant.anthony@gmail.com>
Date: Thu, 27 Mar 2025 19:53:29 +0100
Subject: [PATCH] Create gitlab ci

---
 .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..16b32ab
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,31 @@
+stages:
+  - build
+  - test
+  - clean
+
+variables:
+  CC: gcc
+  CFLAGS: -g -Wall -Wextra -Wpedantic
+  LDLIBS: -lm
+  LDFLAGS: -fsanitize=address -fsanitize=leak
+
+# Build stage
+build:
+  stage: build
+  script:
+    - echo "Compiling the project..."
+    - make puissance4
+
+# Test stage
+test:
+  stage: test
+  script:
+    - echo "Running tests..."
+    - make tests
+
+# Clean stage
+clean:
+  stage: clean
+  script:
+    - echo "Cleaning the project..."
+    - make clean
-- 
GitLab