Parent: [9d8474] (diff)

Child: [e9ad55] (diff)

Download this file

run_clonedigger    41 lines (34 with data), 751 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 \
    "
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