Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[6f5995]: run_clonedigger Maximize Restore History

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