From ddc0fe0122ac01eb1c3dd97a6c3a3672ff08fd4c Mon Sep 17 00:00:00 2001
From: adecoa <endika.aldecoa@ehu.eus>
Date: Tue, 1 Jun 2021 14:50:35 +0200
Subject: [PATCH] fix(CI/CD): install requirements.txt and set version to v9.0

---
 .gitlab-ci.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f04368e..30c8cf0b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,9 +9,11 @@ publish-repository:
     - git submodule init
     - git submodule update
     - python3 -m pip install wheel pyang pyangbind
-    - git clone https://osm.etsi.org/gerrit/osm/IM.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/IM.git
+    - pip3 install -r IM/requirements.txt
     - pip3 install IM/
-    - git clone https://osm.etsi.org/gerrit/osm/osmclient.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/osmclient.git
+    - pip3 install -r osmclient/requirements.txt
     - pip3 install osmclient/
     - rm -rf osmclient/ IM/
     - mv magma/* .
@@ -37,9 +39,11 @@ build-local-repository:
     - git submodule init
     - git submodule update
     - python3 -m pip install wheel pyang pyangbind
-    - git clone https://osm.etsi.org/gerrit/osm/IM.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/IM.git
+    - pip3 install -r IM/requirements.txt
     - pip3 install IM/
-    - git clone https://osm.etsi.org/gerrit/osm/osmclient.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/osmclient.git
+    - pip3 install -r osmclient/requirements.txt
     - pip3 install osmclient/
     - rm -rf osmclient/ IM/
     - mv magma/* .
-- 
GitLab