From 96f7a00d11138bbbce9738f06a6d236c81b8d2a5 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 3 Oct 2023 09:28:17 +0200 Subject: [PATCH] [ci] Install libGL for tests and documentation --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3aea0e42..2fed2c94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,3 +10,15 @@ include: variables: GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_DEPTH: 1 + +documentation: + before_script: + - apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null + - export OMP_NUM_THREADS=1 + - !reference [.snippets, doc-prepare] + +tests: + before_script: + - if [ "$TAG" == "docker" ]; then apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null; fi + - if [ "$TAG" == "docker" ]; then export OMP_NUM_THREADS=1; fi # Set the number of threads used to 1 + - !reference [.snippets, test-prepare] -- GitLab