Skip to content
Snippets Groups Projects
.gitlab-ci.yml 876 B
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# SPDX-FileContributor: Andre Anjos <andre.anjos@idiap.ch>
#
# SPDX-License-Identifier: GPL-3.0-or-later

include:
  - project: biosignal/software/dev-profile
    file: /gitlab/python.yml

variables:
  GIT_SUBMODULE_STRATEGY: normal
  GIT_SUBMODULE_DEPTH: 1

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:
    # 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]