Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.43 KiB
Newer Older
Jeremy Mathews's avatar
Jeremy Mathews committed
before_script:
  - module add  python/3.6.1-2-anaconda
  - pip install --user pytest-pythonpath==0.7.1 pytest-cov==2.5.1
  - module load singularity/3.0.2
Gervaise Henry's avatar
Gervaise Henry committed
  - ln -sfn /project/BICF/BICF_Core/shared/gudmap/test_data/* ./test_data/
Gervaise Henry's avatar
Gervaise Henry committed
  - mkdir -p ~/.deriva
  - mkdir -p ~/.bdbag
Jeremy Mathews's avatar
Jeremy Mathews committed

stages:
  - unit

Gervaise Henry's avatar
Gervaise Henry committed
getBag:
Jeremy Mathews's avatar
Jeremy Mathews committed
  stage: unit
  script:
Gervaise Henry's avatar
Gervaise Henry committed
  - ln -sfn `readlink -e ./test_data/auth/credential.json` ~/.deriva/credential.json
Gervaise Henry's avatar
Gervaise Henry committed
  - singularity run 'docker://bicf/gudmaprbkfilexfer:1.3' deriva-download-cli dev.gudmap.org --catalog 2 ./workflow/conf/replicate_export_config.json . rid=16-1ZX4
Gervaise Henry's avatar
Gervaise Henry committed
  - pytest -m getBag
Gervaise Henry's avatar
Gervaise Henry committed

getData:
  stage: unit
  script:
Gervaise Henry's avatar
Gervaise Henry committed
  - ln -sfn `readlink -e ./test_data/auth/cookies.txt` ~/.bdbag/deriva-cookies.txt
Gervaise Henry's avatar
Gervaise Henry committed
  - unzip ./test_data/bagit/Replicate_16-1ZX4
Gervaise Henry's avatar
Gervaise Henry committed
  - singularity run 'docker://bicf/gudmaprbkfilexfer:1.3' sh ./workflow/scripts/bdbagFetch.sh Replicate_16-1ZX4 16-1ZX4
Gervaise Henry's avatar
Gervaise Henry committed

trimData_se:
Gervaise Henry's avatar
Gervaise Henry committed
  stage: unit
Gervaise Henry's avatar
Gervaise Henry committed
  script:
  - if [ `nproc` -gt 8 ]; then ncore=8; else ncore=`nproc`; fi
  - singularity run 'docker://bicf/trimgalore:1.1' trim_galore --gzip -q 25 --illumina --length 35 --basename 16-1ZX4 -j ${ncore} ./test_data/fastq/16-1ZX4.R1.fastq.gz

Gervaise Henry's avatar
Gervaise Henry committed
trimData_pe:
Gervaise Henry's avatar
Gervaise Henry committed
  stage: unit
Gervaise Henry's avatar
Gervaise Henry committed
  script:
  - if [ `nproc` -gt 8 ]; then ncore=8; else ncore=`nproc`; fi
  - singularity run 'docker://bicf/trimgalore:1.1' trim_galore --gzip -q 25 --illumina --length 35 --paired --basename Q-Y5JA -j ${ncore} ./test_data/fastq/Q-Y5JA.R1.fastq.gz ./test_data/fastq/Q-Y5JA.R2.fastq.gz