Skip to content

Commit

Permalink
prune docker containers at the start of the loop
Browse files Browse the repository at this point in the history
otherwise the 1st job does not profit from this
  • Loading branch information
bernt-matthias committed Nov 25, 2022
1 parent c3300c2 commit fa5f84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ if [ "$MODE" == "test" ]; then
mkdir -p json_output
touch .tt_biocontainer_skip
while read -r -a TOOL_GROUP; do
docker system prune --all --force --volumes || true
# Check if any of the lines in .tt_biocontainer_skip is a substring of $TOOL_GROUP
if echo "${TOOL_GROUP[@]}" | grep -qf .tt_biocontainer_skip; then
PLANEMO_OPTIONS=()
Expand All @@ -168,7 +169,6 @@ if [ "$MODE" == "test" ]; then
fi
json=$(mktemp -u -p json_output --suff .json)
PIP_QUIET=1 planemo test "${PLANEMO_OPTIONS[@]}" "${PLANEMO_TEST_OPTIONS[@]}" --test_output_json "$json" "${TOOL_GROUP[@]}" "${ADDITIONAL_PLANEMO_OPTIONS[@]}" || true
docker system prune --all --force --volumes || true
done < tool_list_chunk.txt

if [ ! -s tool_list_chunk.txt ]; then
Expand Down

0 comments on commit fa5f84b

Please sign in to comment.