From 99478b5d327e884fcfdfa3617d8303926ff1e52b Mon Sep 17 00:00:00 2001
From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it>
Date: Fri, 9 Feb 2024 13:44:28 +0100
Subject: [PATCH] Added compile tests in pipeline with other GNU and CLANG
 compilers

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8f52856e..390a0dd6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,8 +46,20 @@ building_stage:
       - echo "Getting system info ..."
       - cat /etc/os-release
       - cd src
-      - echo "Running make ..."
-      - make -j
+      - echo "Running make with default compilers..."
+      - make wipe && make -j
+      - echo "Running make with gnu compilers version 11..."
+      - make wipe && CXX=g++-11 FC=gfortran-11 make -j
+      - echo "Running make with gnu compilers version 12..."
+      - make wipe && CXX=g++-12 FC=gfortran-12 make -j
+      - echo "Running make with gnu fortran version 12 and clang version 13..."
+      - make wipe && CXX="clang++-13 -stdlib=libc++" FC=gfortran-12 make -j
+      - echo "Running make with gnu fortran version 12 and clang version 14..."
+      - make wipe && CXX="clang++-14 -stdlib=libc++" FC=gfortran-12 make -j
+      - echo "Running make with gnu fortran version 12 and clang version 15..."
+      - make wipe && CXX="clang++-15 -stdlib=libc++" FC=gfortran-12 make -j
+      - echo "Running make with gnu fortran version 12 and clang version 16..."
+      - make wipe && CXX="clang++-16 -stdlib=libc++" FC=gfortran-12 make -j
       - make docs -j && make -C ../doc/build/latex -j
 
 running_stage:
-- 
GitLab