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 nextflow/0.31.0 - ln -s /project/shared/bicf_workflow_ref/workflow_testdata/chipseq/*fastq.gz test_data/ stages: - unit - astrocyte - single - multiple - skip - cleanup user_configuration: stage: unit script: - pytest -m unit --cov=./workflow/scripts bash_tests: stage: unit script: - module load singularity/3.0.2 - module load deeptools/2.5.0.1 - singularity run docker://bats/bats:v1.1.0 --tap workflow/tests/plot_profile.bats astrocyte: stage: astrocyte script: - module load astrocyte/0.3.1 - module unload nextflow - cd .. - astrocyte_cli validate chipseq_analysis after_script: - rm -rf work/ single_end_mouse: stage: single only: - master script: - NXF_OPTS="-Dleveldb.mmap=false" nextflow run workflow/main.nf --astrocyte true --ci true --dev true - pytest -m singleend paired_end_human: stage: single only: - branches except: - master script: - NXF_OPTS="-Dleveldb.mmap=false" nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false --ci true --dev true - pytest -m pairedend single_end_single_control: stage: single only: - branches except: - master script: - NXF_OPTS="-Dleveldb.mmap=false" nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_single_contol_SE.txt" --genome 'GRCh38' --pairedEnd false --astrocyte false --ci true --dev true - pytest -m singlecontrol single_end_diff: stage: multiple only: - master script: - NXF_OPTS="-Dleveldb.mmap=false" nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --astrocyte false --ci true --dev true - pytest -m singleend - pytest -m singlediff paired_end_diff: only: - branches except: - master stage: multiple script: - NXF_OPTS="-Dleveldb.mmap=false" nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false -with-dag flowchart.pdf --ci true --dev true - pytest -m pairedend - pytest -m paireddiff artifacts: name: "$CI_JOB_NAME" when: always paths: - flowchart.pdf expire_in: 7 days single_end_skip: stage: skip only: - master script: - NXF_OPTS="-Dleveldb.mmap=false" 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 --ci true --dev true - pytest -m singleskip_true cleanup_job: stage: cleanup script: - cd $CI_BUILDS_DIR/$CI_RUNNER_SHORT_TOKEN/$CI_PROJECT_NAME - rm -fr $CI_PIPELINE_ID/