.gitlab-ci.yml 1.42 KB
Newer Older
Sander Bollen's avatar
Sander Bollen committed
1
2
3
variables:
  GIT_SUBMODULE_STRATEGY: recursive

Sander Bollen's avatar
Sander Bollen committed
4
5
6
7
.docker_before_script_anchor: &docker_before_script_anchor
  before_script:
    - pip install -r requirements.txt
    - pip install -r requirements-dev.txt
Sander Bollen's avatar
Sander Bollen committed
8

Sander Bollen's avatar
Sander Bollen committed
9
10
11
12
stages:
  - sanity
  - dry-run
  - integration
Sander Bollen's avatar
Sander Bollen committed
13
  - functional
Sander Bollen's avatar
Sander Bollen committed
14
15

test_sanities:
Sander Bollen's avatar
Sander Bollen committed
16
  <<: *docker_before_script_anchor
Sander Bollen's avatar
Sander Bollen committed
17
  script:
Sander Bollen's avatar
Sander Bollen committed
18
    - py.test --tag sanity
Sander Bollen's avatar
Sander Bollen committed
19
  image: python:3.6-stretch
Sander Bollen's avatar
Sander Bollen committed
20
21
  tags:
    - docker
Sander Bollen's avatar
Sander Bollen committed
22
  stage: sanity
Sander Bollen's avatar
Sander Bollen committed
23
24

test_dry_run:
Sander Bollen's avatar
Sander Bollen committed
25
  <<: *docker_before_script_anchor
Sander Bollen's avatar
Sander Bollen committed
26
27
  script:
    - py.test --tag dry-run
Sander Bollen's avatar
Sander Bollen committed
28
  image: python:3.6-stretch
Sander Bollen's avatar
Sander Bollen committed
29
30
  tags:
    - docker
Sander Bollen's avatar
Sander Bollen committed
31
32
  stage: dry-run

Sander Bollen's avatar
Sander Bollen committed
33
34
35
36
37
38
39
40
41
42

test_integration_singularity:
  <<: *docker_before_script_anchor
  script:
    - apt-get install singularity-container
    - py.test --tag singularity-integration
  image: debian:buster
  tags:
    - docker

Sander Bollen's avatar
Sander Bollen committed
43
44
45
46
47
48
49
test_integration:
  before_script:
    - export BASETEMP=$(mktemp -p ${RUN_BASE_DIR} -d)
  script:
    - source ${CONDA_SH}
    - conda activate hutspot-pipeline
    - export PATH=${PATH}:${CONDA_EXTRA_PATH}
Sander Bollen's avatar
Sander Bollen committed
50
    - py.test --tag integration --basetemp ${BASETEMP} --keep-workflow-wd
Sander Bollen's avatar
Sander Bollen committed
51
52
  tags:
    - slurm
Sander Bollen's avatar
Sander Bollen committed
53
  stage: integration
Sander Bollen's avatar
Sander Bollen committed
54
55
56
57
58
59
60

test_functional:
  before_script:
    - export BASETEMP=$(mktemp -p ${RUN_BASE_DIR} -d)
  script:
    - source ${CONDA_SH}
    - conda activate hutspot-pipeline
Sander Bollen's avatar
Sander Bollen committed
61
    - export PATH=${PATH}:${CONDA_EXTRA_PATH}
Sander Bollen's avatar
Sander Bollen committed
62
63
64
65
66
67
    - py.test --tag functional --basetemp ${BASETEMP} --keep-workflow-wd
  tags:
    - slurm
  stage: functional
  only:
    - schedules