Skip to content

Commit

Permalink
Add CI groupings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Nov 4, 2023
1 parent 85d9b6c commit 0841bbb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion projects/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
#!/bin/bash

set -e
set -euo pipefail

startgroup () {
}

export USE_INDEX_CACHE=""
for PROJECT in `ls -d */`; do
if [[ "$CI" ]]; then
echo "Testing ::group::${PROJECT}"
fi

if [ -e "${PROJECT}/.skipci" ]; then
echo "Skipping tests for project ${PROJECT}."
if [[ "$CI" ]]; then
echo "::endgroup::"
fi
continue
fi
REQUIREMENTS_FILE="${PROJECT}/requirements.txt"
Expand All @@ -19,4 +29,7 @@ for PROJECT in `ls -d */`; do
export USE_INDEX_CACHE="--use-index-cache"
fi
python flow-test.py ${PROJECT} -vv --timeout=600 $@
if [[ "$CI" ]]; then
echo "::endgroup::"
fi
done

0 comments on commit 0841bbb

Please sign in to comment.