Skip to content
Snippets Groups Projects
.gitlab-ci.yml 658 B
Newer Older
nina.marthe_ird.fr's avatar
nina.marthe_ird.fr committed
# docker image used to build the app
nina.marthe_ird.fr's avatar
nina.marthe_ird.fr committed
image: python:3.10
nina.marthe_ird.fr's avatar
nina.marthe_ird.fr committed

stages:
  - install
  - test

before_script:
  - echo ${CI_PROJECT_DIR}
  - echo ${CI_COMMIT_REF_NAME}
  - export PATH=$PATH:/root/.local/bin
  - python3 -m pip install -U setuptools build pip
  - apt-get update -qq && apt-get install -y -qq bedtools
nina.marthe_ird.fr's avatar
nina.marthe_ird.fr committed
  - python3 -m pip install --user grannot@git+https://forge.ird.fr/diade/dynadiv/grannot.git@$CI_COMMIT_REF_NAME

test_install:
nina.marthe_ird.fr's avatar
nina.marthe_ird.fr committed
  stage: install
  script:
    - grannot --version
#  tag:
#    - VM
  rules:
#    - if: $CI_COMMIT_TAG =~ "/^v.*rc/" # if commit tag starts with v
nina.marthe_ird.fr's avatar
nina.marthe_ird.fr committed
    - if: $CI_COMMIT_MESSAGE =~ "/.*-TEST.*/i" # test in commit message