test: Fix profile logic order

This commit is contained in:
Edmund Miller 2021-02-02 17:32:21 -06:00
parent 67deb0d47a
commit 72b4fb35aa
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -5,13 +5,13 @@ params {
singularity_pull_docker_container = false singularity_pull_docker_container = false
} }
if("$PROFILE" == "docker") { if ("$PROFILE" == "singularity") {
docker.enabled = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
} else if ("$PROFILE" == "singularity") {
singularity.enabled = true singularity.enabled = true
singularity.autoMounts = true singularity.autoMounts = true
singularity.runOptions = '-B /tmp/' singularity.runOptions = '-B /tmp/'
} else if ("$PROFILE" == "conda") { } else if ("$PROFILE" == "conda") {
params.enable_conda = true params.enable_conda = true
} else {
docker.enabled = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
} }