Skip to content

Commit

Permalink
tests: automatically use apptainer when not in --quick mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed Jan 24, 2024
1 parent 8c88107 commit 658cbff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ mkdir -p output/ tmp/
touch output/nobackup tmp/nobackup

# If quick, overwrite config with cut-back version
SDM=(conda)
if [[ "${1:-notquick}" == "--quick" ]]
then
cp .config_quick.yml config.yml
shift
else
SDM+=(apptainer)
fi

# Run pipeline
snakemake -j $(nproc 2>/dev/null || echo 2) --software-deployment-method conda --ri "${@}"
snakemake -j $(nproc 2>/dev/null || echo 2) --software-deployment-method "${SDM[@]}" --ri "${@}"

0 comments on commit 658cbff

Please sign in to comment.