.gitlab-ci.yml 815 Bytes
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
36
37
38
39
  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}
    - py.test --tag integration --basetemp ${BASETEMP}
  tags:
    - slurm
  stage: integration