.gitlab-ci.yml 1.83 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
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
  - astrocyte
10
11
  - single
  - multiple
Venkat Malladi's avatar
Venkat Malladi committed
12
  - skip
Venkat Malladi's avatar
Venkat Malladi committed
13
14
15
16
17

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

20
21
22
23
24
25
26
27
28
29
astrocyte:
  stage: astrocyte
  script:
  - module load astrocyte/0.1.0
  - module unload nextflow
  - cd ..
  - astrocyte_cli validate chipseq_analysis
  artifacts:
    expire_in: 2 days

Venkat Malladi's avatar
Venkat Malladi committed
30
single_end_mouse:
31
  stage: single
32
33
  only:
    - master
Venkat Malladi's avatar
Venkat Malladi committed
34
  script:
35
  - nextflow run workflow/main.nf --astrocyte true -resume
36
  - pytest -m singleend
Venkat Malladi's avatar
Venkat Malladi committed
37
38

paired_end_human:
39
  stage: single
40
41
  only:
    - branches
Venkat Malladi's avatar
Venkat Malladi committed
42
43
  except:
    - master
Venkat Malladi's avatar
Venkat Malladi committed
44
  script:
45
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false -resume
46
  - pytest -m pairedend
47
48

single_end_diff:
49
  stage: multiple
50
51
  only:
    - branches
Venkat Malladi's avatar
Venkat Malladi committed
52
53
  except:
    - master
54
  script:
55
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --astrocyte false -resume
56
  - pytest -m singleend
Venkat Malladi's avatar
Venkat Malladi committed
57
  - pytest -m singlediff
58
59

paired_end_diff:
60
61
  only:
    - master
62
  stage: multiple
63
  script:
64
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false -resume
65
  - pytest -m pairedend
Venkat Malladi's avatar
Venkat Malladi committed
66
  - pytest -m paireddiff
67
68

single_end_skip:
Venkat Malladi's avatar
Venkat Malladi committed
69
  stage: skip
70
71
72
  only:
    - master
  script:
73
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --skipDiff true --skipMotif true --skipPlotProfile true --astrocyte false -resume
Venkat Malladi's avatar
Venkat Malladi committed
74
  - pytest -m singleskip_true