variables: GIT_DEPTH: 5 GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_RUNNER_SHORT_TOKEN/$CI_CONCURRENT_ID/$CI_PROJECT_NAME/$CI_PIPELINE_ID 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 - ulimit -c unlimited - ln -s /project/shared/bicf_workflow_ref/workflow_testdata/chipseq/*fastq.gz test_data/ stages: - unit - astrocyte - single - multiple - skip user_configuration: stage: unit script: - pytest -m unit --cov=./workflow/scripts astrocyte: stage: astrocyte script: - module load astrocyte/0.2.0 - module unload nextflow - cd .. - astrocyte_cli validate chipseq_analysis single_end_mouse: stage: single only: - master script: - nextflow run workflow/main.nf --astrocyte true - pytest -m singleend paired_end_human: stage: single only: - branches except: - master script: - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false - pytest -m pairedend single_end_single_control: stage: single only: - branches except: - master script: - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_single_contol_SE.txt" --genome 'GRCh38' --pairedEnd false --astrocyte false - pytest -m singlecontrol single_end_diff: stage: multiple only: - branches except: - master script: - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' --astrocyte false - pytest -m singleend - pytest -m singlediff paired_end_diff: only: - master stage: multiple script: - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true --astrocyte false - pytest -m pairedend - pytest -m paireddiff single_end_skip: stage: skip only: - master script: - 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 - pytest -m singleskip_true