/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Nextflow config file for running minimal tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Defines input files and everything required to run a fast and simple pipeline test.

    Use as follows:
        nextflow run ebi-metagenomics/miassembler -profile test,<docker/singularity> --outdir <OUTDIR>

----------------------------------------------------------------------------------------
*/

profiles {

    test {
        process {
            resourceLimits = [
                cpus: 2,
                memory: 6.GB,
                time: 1.h
            ]
        }
        params {
            input                    = "${projectDir}/tests/test_samplesheet.csv"
            biome                    = "human-vaginal-v1.0"
            decontamination_indexes  = "${projectDir}/tests/bwa2mem/"
            reference_dbs            = "${projectDir}/tests/reference_dbs/"
        }

        process {
            errorStrategy = 'terminate'
            maxRetries = 0
        }
    }
}


