From 0ae8c576632c85360b9019cfe9b66cc437362b45 Mon Sep 17 00:00:00 2001
From: gregkub <gregoire.kubler@proton.me>
Date: Tue, 30 Apr 2024 16:31:07 +0200
Subject: [PATCH] feat : now uses template ci files

---
 .gitlab-ci.yml | 48 ++++++++++++++++--------------------------------
 1 file changed, 16 insertions(+), 32 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 271581e..c733168 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,39 +1,23 @@
-################################################################################
-# Pre-configured CI/CD for your Aidge module.
-#
-# Three stages are already pre-configured to run on Eclipse Aidge CI:
-# - build: ubuntu_cpp, ubuntu_python and windows_cpp;
-# - test: ubuntu_cpp, ubuntu_python and windows_cpp;
-# - coverage: ubuntu_cpp and ubuntu_python.
-#
-# If your project is pure C++ or pure Python, you can remove the "_python" or 
-# "_cpp" jobs respectively.
-# "ubuntu" jobs require an Ubuntu runner with a docker executor with tag 
-# "docker".
-# "windows" jobs require a Windows runner with a docker-windows executor with 
-# tag "windows".
-#
-# You can change the docker images in the YML scripts directly. The default 
-# images are:
-# - nvidia/cuda:12.2.0-devel-ubuntu22.04 for Ubuntu jobs;
-# - buildtools for Windows jobs, built on top of 
-#   mcr.microsoft.com/windows/servercore:ltsc2022 with Microsoft Visual Studio 
-#   2022 BuildTools installed.
-#
-# See Aidge project wiki for more details on how to setup your own docker images
-# and Gitlab runners.
-################################################################################
+###############################################################################
+#            Aidge Continious Integration and Continious Deployment            #
+#                                                                             #
+###############################################################################
 
 stages:
-  # Build
+  - static_analysis
   - build
-  # Unit test stage
   - test
-  # Code coverage
   - coverage
+  - release
 
 include:
-  - local: '/.gitlab/ci/_global.gitlab-ci.yml'
-  - local: '/.gitlab/ci/build.gitlab-ci.yml'
-  - local: '/.gitlab/ci/test.gitlab-ci.yml'
-  - local: '/.gitlab/ci/coverage.gitlab-ci.yml'
+  - project: 'eclipse/aidge/gitlab_shared_files' 
+    ref: 'feat/release_pip'
+    file: 
+      - '.gitlab/ci/_global.gitlab-ci.yml'
+      # choose which build jobs to run by including the corresponding build files.
+      - '.gitlab/ci/build/ubuntu_cpp.gitlab-ci.yml'
+      - '.gitlab/ci/build/ubuntu_python.gitlab-ci.yml'
+      # - '.gitlab/ci/build/windows_cpp.gitlab-ci.yml'
+      # - '.gitlab/ci/build/windows_python.gitlab-ci.yml'
+    
-- 
GitLab