.gitlab-ci.yml 2.04 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:
Venkat Malladi's avatar
Venkat Malladi committed
35
  - nextflow run workflow/main.nf --astrocyte true
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:
Venkat Malladi's avatar
Venkat Malladi committed
45
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false
46
  - pytest -m pairedend
47

48
49
50
51
52
53
54
single_end_single_control:
  stage: single
  only:
    - branches
  except:
    - master
  script:
Venkat Malladi's avatar
Venkat Malladi committed
55
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_single_contol_SE.txt" --genome 'GRCh38' --pairedEnd false --astrocyte false
56

57
single_end_diff:
58
  stage: multiple
59
60
  only:
    - branches
Venkat Malladi's avatar
Venkat Malladi committed
61
62
  except:
    - master
63
  script:
Venkat Malladi's avatar
Venkat Malladi committed
64
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --astrocyte false
65
  - pytest -m singleend
Venkat Malladi's avatar
Venkat Malladi committed
66
  - pytest -m singlediff
67
68

paired_end_diff:
69
70
  only:
    - master
71
  stage: multiple
72
  script:
Venkat Malladi's avatar
Venkat Malladi committed
73
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false
74
  - pytest -m pairedend
Venkat Malladi's avatar
Venkat Malladi committed
75
  - pytest -m paireddiff
76
77

single_end_skip:
Venkat Malladi's avatar
Venkat Malladi committed
78
  stage: skip
79
80
81
  only:
    - master
  script:
Venkat Malladi's avatar
Venkat Malladi committed
82
  - 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
Venkat Malladi's avatar
Venkat Malladi committed
83
  - pytest -m singleskip_true