.gitlab-ci.yml 1.93 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
  - 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
  artifacts:
    expire_in: 2 days
Venkat Malladi's avatar
Venkat Malladi committed
39
40

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

single_end_diff:
53
  stage: multiple
54
55
  only:
    - branches
Venkat Malladi's avatar
Venkat Malladi committed
56
57
  except:
    - master
58
  script:
59
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --astrocyte false -resume
Venkat Malladi's avatar
Venkat Malladi committed
60
  - pytest -m singlediff
61
62
63
64
  artifacts:
    expire_in: 2 days

paired_end_diff:
65
66
  only:
    - master
67
  stage: multiple
68
  script:
69
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false -resume
Venkat Malladi's avatar
Venkat Malladi committed
70
  - pytest -m paireddiff
Venkat Malladi's avatar
Venkat Malladi committed
71
72
  artifacts:
    expire_in: 2 days
73
74

single_end_skip:
Venkat Malladi's avatar
Venkat Malladi committed
75
  stage: skip
76
77
78
  only:
    - master
  script:
79
  - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --skipDiff true --skipMotif true --astrocyte false -resume
Venkat Malladi's avatar
Venkat Malladi committed
80
  - pytest -m singleskip_true
81
82
  artifacts:
    expire_in: 2 days