.gitlab-ci.yml 1.11 KB
Newer Older
Sander Bollen's avatar
Sander Bollen committed
1
2
3
4
.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
5

Sander Bollen's avatar
Sander Bollen committed
6
7
8
9
stages:
  - sanity
  - dry-run
  - integration
Sander Bollen's avatar
Sander Bollen committed
10
11

test_sanities:
Sander Bollen's avatar
Sander Bollen committed
12
  <<: *docker_before_script_anchor
Sander Bollen's avatar
Sander Bollen committed
13
  script:
Sander Bollen's avatar
Sander Bollen committed
14
    - py.test --tag sanity
Sander Bollen's avatar
Sander Bollen committed
15
  image: python:3.6-stretch
Sander Bollen's avatar
Sander Bollen committed
16
17
  tags:
    - docker
Sander Bollen's avatar
Sander Bollen committed
18
  stage: sanity
Sander Bollen's avatar
Sander Bollen committed
19
20

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

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
36
    - py.test --tag integration --basetemp ${BASETEMP} --keep-workflow-wd
Sander Bollen's avatar
Sander Bollen committed
37
38
  tags:
    - slurm
Sander Bollen's avatar
Sander Bollen committed
39
  stage: integration
Sander Bollen's avatar
Sander Bollen committed
40
41
42
43
44
45
46
47
48
49
50
51
52

test_functional:
  before_script:
    - export BASETEMP=$(mktemp -p ${RUN_BASE_DIR} -d)
  script:
    - source ${CONDA_SH}
    - conda activate hutspot-pipeline
    - py.test --tag functional --basetemp ${BASETEMP} --keep-workflow-wd
  tags:
    - slurm
  stage: functional
  only:
    - schedules