.gitlab-ci.yml 1.12 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
  - functional
Sander Bollen's avatar
Sander Bollen committed
11
12

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

test_dry_run:
Sander Bollen's avatar
Sander Bollen committed
22
  <<: *docker_before_script_anchor
Sander Bollen's avatar
Sander Bollen committed
23
24
  script:
    - py.test --tag dry-run
Sander Bollen's avatar
Sander Bollen committed
25
  image: python:3.6-stretch
Sander Bollen's avatar
Sander Bollen committed
26
27
  tags:
    - docker
Sander Bollen's avatar
Sander Bollen committed
28
29
30
31
32
33
34
35
36
  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
37
    - py.test --tag integration --basetemp ${BASETEMP} --keep-workflow-wd
Sander Bollen's avatar
Sander Bollen committed
38
39
  tags:
    - slurm
Sander Bollen's avatar
Sander Bollen committed
40
  stage: integration
Sander Bollen's avatar
Sander Bollen committed
41
42
43
44
45
46
47
48
49
50
51
52
53

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