mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
test: Use profile ENV variable hack
The user will now set the env variable and pass it to pytest. You also can't set the env variable ahead of time, it has to be run with pytest. Example: PROFILE=conda pytest --tag fastqc --symlink --kwd
This commit is contained in:
parent
e7b1241449
commit
ddbca7b467
1 changed files with 8 additions and 13 deletions
|
@ -1,20 +1,15 @@
|
|||
|
||||
params {
|
||||
outdir = "output/"
|
||||
publish_dir_mode = "copy"
|
||||
enable_conda = false
|
||||
}
|
||||
|
||||
profiles {
|
||||
conda {
|
||||
params.enable_conda = true
|
||||
}
|
||||
docker {
|
||||
if("$PROFILE" == "docker") {
|
||||
docker.enabled = true
|
||||
docker.runOptions = '-u \$(id -u):\$(id -g)'
|
||||
}
|
||||
singularity {
|
||||
} else if ("$PROFILE" == "singularity") {
|
||||
singularity.enabled = true
|
||||
singularity.autoMounts = true
|
||||
}
|
||||
} else if ("$PROFILE" == "conda") {
|
||||
params.enable_conda = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue