.gitlab-ci.yml 1.72 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
Venkat Malladi's avatar
Venkat Malladi committed
9
  - skip
10
11
  - single
  - multiple
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
23
24
  only:
    - master
  except:
    - branches
Venkat Malladi's avatar
Venkat Malladi committed
25
  script:
Venkat Malladi's avatar
Venkat Malladi committed
26
  - nextflow run workflow/main.nf -resume
27
  - pytest -m singleend
Venkat Malladi's avatar
Venkat Malladi committed
28
29
  artifacts:
    expire_in: 2 days
Venkat Malladi's avatar
Venkat Malladi committed
30
31

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

single_end_diff:
44
  stage: multiple
45
46
47
48
  only:
    - branches
  except:
    - master
49
  script:
50
  - 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
51
  - pytest -m singlediff
52
53
54
55
  artifacts:
    expire_in: 2 days

paired_end_diff:
56
57
58
59
  only:
    - master
  except:
    - branches
60
  stage: multiple
61
  script:
62
  - 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
63
  - pytest -m paireddiff
Venkat Malladi's avatar
Venkat Malladi committed
64
65
  artifacts:
    expire_in: 2 days
66
67

single_end_skip:
Venkat Malladi's avatar
Venkat Malladi committed
68
  stage: skip
69
70
71
72
73
74
  only:
    - branches
  except:
    - 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
75
  - pytest -m singleskip_true
76
77
  artifacts:
    expire_in: 2 days