Switch to unified view

a b/run_clonedigger
1
#!/bin/bash
2
3
if [ -n "$SF_SYSTEM_FUNC" ]; then
4
  if [ -z "$VIRTUAL_ENV" ]; then
5
        source /var/local/env-allura/bin/activate
6
  fi
7
fi
8
9
# main
10
11
if [ "$TEST_MODULES"  == "" ]; then
12
    TEST_MODULES="\
13
    AlluraTesting \
14
    Allura \
15
    ForgeBlog \
16
    ForgeLink \
17
    ForgeChat \
18
    ForgeDiscussion \
19
    ForgeGit \
20
    ForgeHg \
21
    ForgeSVN \
22
    ForgeTracker \
23
    ForgeWiki \
24
    ForgeDownloads \
25
    "
26
fi
27
28
if [ "$INCLUDE_TESTS" ]; then
29
    ignore=""
30
else
31
    ignore="tests"
32
fi
33
34
mkdir -p report.clonedigger
35
36
for module in $TEST_MODULES; do
37
    (
38
        echo "Running clonedigger in module $module"
39
        clonedigger --output="report.clonedigger/$module-$(date --iso-8601=seconds).html" --language=python --ignore-dir="$ignore" $module || exit
40
    ) || exit
41
done