From 231912a1488bb6df00a00875127a52a328ed9ff4 Mon Sep 17 00:00:00 2001
From: acrovato <a.crovato@uliege.be>
Date: Thu, 21 Dec 2023 16:14:24 +0100
Subject: [PATCH] fix ci

---
 .gitlab-ci.yml | 43 +++++++++++++++++++++----------------------
 1 file changed, 21 insertions(+), 22 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05d4b10..e2ac67f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,26 @@
 default:
     image: rboman/waves-py3:2020.3
+    before_script:
+        # Instal pip
+        - wget https://bootstrap.pypa.io/get-pip.py
+        - python3 get-pip.py
+        # Install CoDiPack
+        - git clone https://github.com/SciCompKL/CoDiPack
+        - cd CoDiPack
+        - git checkout tags/v2.1.0
+        - INCLUDE=${INCLUDE}:${PWD}/include
+        - cd ..
+        # Install SDPM
+        - git clone https://gitlab.uliege.be/am-dept/sdpm && cd sdpm
+        - git checkout adri # TODO remove
+        - mkdir build && cd build
+        - cmake ..
+        - make install -j8
+        - cd ../..
+        # Install PyPK
+        - git clone https://gitlab.uliege.be/am-dept/pypk && cd pypk
+        - python3 -m pip install .
+        - cd ..
 
 .global_tag: &global_tag_def
     tags:
@@ -18,28 +39,6 @@ build:
     <<: *global_tag_def
     stage: build
     script:
-        # Instal pip
-        - wget -q https://bootstrap.pypa.io/get-pip.py
-        - python3 get-pip.py
-        # Install SDPM
-        - wget -q https://gitlab.uliege.be/am-dept/sdpm/-/archive/adri/sdpm-adri.tar.bz2
-        - tar xf sdpm-adri.tar.bz2
-        - rm sdpm-adri.tar.bz2
-        - mv sdpm-adri sdpm
-        - cd sdpm
-        - mkdir build && cd build
-        - cmake ..
-        - make install -j8
-        - cd ../..
-        # Install PyPK
-        - wget -q https://gitlab.uliege.be/am-dept/pypk/-/archive/master/pypk-master.tar.bz2
-        - tar xf pypk-master.tar.bz2
-        - rm pypk-master.tar.bz2
-        - mv pypk-master pypk
-        - cd pypk
-        - python3 -m pip install .
-        - cd ..
-        # Install OMFlut
         - python3 -m pip install .
 
 test:
-- 
GitLab