.gitlab-ci.yml 1.6 KB
Newer Older
Venkat Malladi's avatar
Venkat Malladi committed
1
before_script:
Venkat Malladi's avatar
Venkat Malladi committed
2
  - module add  python/3.6.1-2-anaconda
3
  - pip install --user pytest-pythonpath==0.7.1 pytest-cov==2.5.1
Venkat Malladi's avatar
Venkat Malladi committed
4
  - module load  nextflow/0.31.0
5
  - ln -s /project/shared/bicf_workflow_ref/workflow_testdata/chipseq/*fastq.gz test_data/
Venkat Malladi's avatar
Venkat Malladi committed
6

Venkat Malladi's avatar
Venkat Malladi committed
7
8
stages:
  - unit
9
10
  - single
  - multiple
Venkat Malladi's avatar
Venkat Malladi committed
11
  - skip
Venkat Malladi's avatar
Venkat Malladi committed
12
13
14
15
16

user_configuration:
  stage: unit
  script:
  - pytest -m unit
Venkat Malladi's avatar
Venkat Malladi committed
17
  - pytest -m unit --cov=./workflow/scripts
Venkat Malladi's avatar
Venkat Malladi committed
18
19

single_end_mouse:
20
  stage: single
21
22
  only:
    - master
Venkat Malladi's avatar
Venkat Malladi committed
23
  script:
Venkat Malladi's avatar
Venkat Malladi committed
24
  - nextflow run workflow/main.nf -resume
25
  - pytest -m singleend
Venkat Malladi's avatar
Venkat Malladi committed
26
27
  artifacts:
    expire_in: 2 days
Venkat Malladi's avatar
Venkat Malladi committed
28
29

paired_end_human:
30
  stage: single
31
32
  only:
    - branches
Venkat Malladi's avatar
Venkat Malladi committed
33
  script:
34
35
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true -resume
  - pytest -m pairedend
36
37
38
39
  artifacts:
    expire_in: 2 days

single_end_diff:
40
  stage: multiple
41
42
  only:
    - branches
43
  script:
44
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' -resume
Venkat Malladi's avatar
Venkat Malladi committed
45
  - pytest -m singlediff
46
47
48
49
  artifacts:
    expire_in: 2 days

paired_end_diff:
50
51
  only:
    - master
52
  stage: multiple
53
  script:
54
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true -resume
Venkat Malladi's avatar
Venkat Malladi committed
55
  - pytest -m paireddiff
Venkat Malladi's avatar
Venkat Malladi committed
56
57
  artifacts:
    expire_in: 2 days
58
59

single_end_skip:
Venkat Malladi's avatar
Venkat Malladi committed
60
  stage: skip
61
62
63
64
  only:
    - master
  script:
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --skipDiff true --skipMotif true -resume
Venkat Malladi's avatar
Venkat Malladi committed
65
  - pytest -m singleskip_true
66
67
  artifacts:
    expire_in: 2 days