.gitlab-ci.yml 2.17 KB
Newer Older
Venkat Malladi's avatar
Venkat Malladi committed
1
2
variables:
  GIT_DEPTH: 5
Venkat Malladi's avatar
Venkat Malladi committed
3
  GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_RUNNER_SHORT_TOKEN/$CI_CONCURRENT_ID/$CI_PROJECT_NAME/$CI_PIPELINE_ID
Venkat Malladi's avatar
Venkat Malladi committed
4
5


Venkat Malladi's avatar
Venkat Malladi committed
6
before_script:
Venkat Malladi's avatar
Venkat Malladi committed
7
  - module add  python/3.6.1-2-anaconda
8
  - pip install --user pytest-pythonpath==0.7.1 pytest-cov==2.5.1
9
  - module load nextflow/0.31.0
Venkat Malladi's avatar
Venkat Malladi committed
10
  - ulimit -c unlimited
11
  - ln -s /project/shared/bicf_workflow_ref/workflow_testdata/chipseq/*fastq.gz test_data/
Venkat Malladi's avatar
Venkat Malladi committed
12

Venkat Malladi's avatar
Venkat Malladi committed
13
14
stages:
  - unit
15
  - astrocyte
16
17
  - single
  - multiple
Venkat Malladi's avatar
Venkat Malladi committed
18
  - skip
Venkat Malladi's avatar
Venkat Malladi committed
19
20
21
22

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

25
26
27
astrocyte:
  stage: astrocyte
  script:
28
  - module load astrocyte/0.2.0
29
30
31
32
  - module unload nextflow
  - cd ..
  - astrocyte_cli validate chipseq_analysis

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

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

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

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

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

single_end_skip:
Venkat Malladi's avatar
Venkat Malladi committed
82
  stage: skip
83
84
85
  only:
    - master
  script:
Venkat Malladi's avatar
Venkat Malladi committed
86
  - 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
87
  - pytest -m singleskip_true