From 3a3775e7ab747c9d397829b6e82486fc7da07334 Mon Sep 17 00:00:00 2001
From: dcarron <daniel.carron@idiap.ch>
Date: Wed, 14 Feb 2024 09:48:40 +0100
Subject: [PATCH] [gitlab-ci] Re-add libgl1 installation command

---
 .gitlab-ci.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e46cf020..25425691 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,9 +12,16 @@ variables:
   GIT_SUBMODULE_DEPTH: 1
   XDG_CONFIG_HOME: $CI_PROJECT_DIR/tests/data
 
+documentation:
+  before_script:
+    # for opencv-python dependence
+    - apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null
+    - !reference [.snippets, doc-prepare]
+
 tests:
   before_script:
-    - ls /idiap/resource/database/*
+    # for opencv-python dependence
+    - if [ "$TAG" == "docker" ]; then apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null; fi
     # for pytorch quirks on linux
     - if [ "$TAG" == "docker" ]; then export OMP_NUM_THREADS=1; fi # Set the number of threads used to 1
     - !reference [.snippets, test-prepare]
-- 
GitLab