From 1f326f6856d2e4bea6af720eff99a0a5c979d6c4 Mon Sep 17 00:00:00 2001 From: dcarron <daniel.carron@idiap.ch> Date: Tue, 13 Feb 2024 17:06:23 +0100 Subject: [PATCH] [ci] Use CI_PROJECT_DIR variable --- .gitlab-ci.yml | 11 ++--------- tests/{config => data}/mednet.toml | 0 2 files changed, 2 insertions(+), 9 deletions(-) rename tests/{config => data}/mednet.toml (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e5e0debc..e46cf020 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,18 +10,11 @@ include: variables: GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_DEPTH: 1 - XDG_CONFIG_HOME: tests/config - -documentation: - before_script: - # for opencv-python dependence - - apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null - - !reference [.snippets, doc-prepare] + XDG_CONFIG_HOME: $CI_PROJECT_DIR/tests/data tests: before_script: - # for opencv-python dependence - - if [ "$TAG" == "docker" ]; then apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null; fi + - ls /idiap/resource/database/* # 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] diff --git a/tests/config/mednet.toml b/tests/data/mednet.toml similarity index 100% rename from tests/config/mednet.toml rename to tests/data/mednet.toml -- GitLab