From d052494c48b97becbd08b114bafa58f59471f567 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?=
 <francois.dekeersmaeker@uclouvain.be>
Date: Mon, 14 Oct 2024 18:05:12 +0200
Subject: [PATCH] Added GitLab CI

---
 .github/workflows/unit-tests.yaml | 29 -----------------------------
 .gitlab-ci.yml                    | 11 +++++++++++
 2 files changed, 11 insertions(+), 29 deletions(-)
 delete mode 100644 .github/workflows/unit-tests.yaml
 create mode 100644 .gitlab-ci.yml

diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml
deleted file mode 100644
index b89710a..0000000
--- a/.github/workflows/unit-tests.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-name: Unit tests for source files
-on: [push]
-
-
-jobs:
-
-  test:
-    runs-on: ubuntu-latest
-    steps:
-
-      - name: Checkout repository
-        uses: actions/checkout@v3
-        with:
-          submodules: recursive
-
-      - name: Install required packages
-        run: sudo $GITHUB_WORKSPACE/.ci_scripts/install_packages.sh
-
-      - name: Build project with CMake
-        run: $GITHUB_WORKSPACE/.ci_scripts/build.sh -C $GITHUB_WORKSPACE
-
-      - name: Run CUnit tests
-        run: $GITHUB_WORKSPACE/.ci_scripts/run_tests.sh
-
-      - name: Run Valgrind on CUnit tests
-        run: $GITHUB_WORKSPACE/.ci_scripts/run_tests.sh valgrind
-
-      - name: Run cppcheck on source files
-        run: $GITHUB_WORKSPACE/.ci_scripts/run_cppcheck.sh
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..ac76c82
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,11 @@
+variables:
+  GIT_SUBMODULE_STRATEGY: recursive
+
+
+test-job:
+  script:
+    - sudo .ci_scripts/install_packages.sh  # Install required packages
+    - .ci_scripts/build.sh                  # Build project with CMake
+    - .ci_scripts/run_tests.sh              # Run CUnit tests
+    - .ci_scripts/run_tests.sh valgrind     # Run Valgrind on CUnit tests
+    - .ci_scripts/run_cppcheck.sh           # Run cppcheck on source files
-- 
GitLab