Child:
[30c0f4]
(diff)
Download this file
run_clonedigger
42 lines (35 with data), 772 Bytes
#!/bin/bash
if [ -n "$SF_SYSTEM_FUNC" ]; then
if [ -z "$VIRTUAL_ENV" ]; then
source /var/local/env-allura/bin/activate
fi
fi
# main
if [ "$TEST_MODULES" == "" ]; then
TEST_MODULES="\
AlluraTesting \
Allura \
ForgeBlog \
ForgeLink \
ForgeChat \
ForgeDiscussion \
ForgeGit \
ForgeHg \
ForgeSVN \
ForgeTracker \
ForgeWiki \
ForgeDownloads \
"
fi
if [ "$INCLUDE_TESTS" ]; then
ignore=""
else
ignore="tests"
fi
mkdir -p report.clonedigger
for module in $TEST_MODULES; do
(
echo "Running clonedigger in module $module"
clonedigger --output="report.clonedigger/$module-$(date --iso-8601=seconds).html" --language=python --ignore-dir="$ignore" $module || exit
) || exit
done