Revision cb1060f2

b/ci/ci_squeeze.conf
64 64

  
65 65

  
66 66
[Unit Tests]
67
component = astakos cyclades pithos
67
component = astakos cyclades pithos astakosclient
68 68

  
69 69

  
70 70
[Repository]
b/ci/ci_wheezy.conf
64 64

  
65 65

  
66 66
[Unit Tests]
67
component = astakos cyclades pithos
67
component = astakos cyclades pithos astakosclient
68 68

  
69 69

  
70 70
[Repository]
b/ci/tests.sh
4 4
SNF_MANAGE=$(which snf-manage) ||
5 5
	{ echo "Cannot find snf-manage in $PATH" 1>&2; exit 1; }
6 6

  
7
runtest () {
7
runTest () {
8 8
    TEST="$SNF_MANAGE test $* --traceback --noinput --settings=synnefo.settings.test"
9 9

  
10
    runCoverage "$TEST"
11
}
12

  
13
runCoverage () {
10 14
    if coverage >/dev/null 2>&1; then
11
      coverage run $TEST
15
      coverage run $1
12 16
      coverage report --include=snf-*
13 17
    else
14 18
      echo "WARNING: Cannot find coverage in path, skipping coverage tests" 1>&2
15
      $TEST
19
      $1
16 20
    fi
17 21
}
18 22

  
......
24 28

  
25 29
TEST_COMPONENTS="$@"
26 30
if [ -z "$TEST_COMPONENTS" ]; then
27
    TEST_COMPONENTS="astakos cyclades pithos"
31
    TEST_COMPONENTS="astakos cyclades pithos astakosclient"
28 32
fi
29 33

  
30 34
for component in $TEST_COMPONENTS; do
31 35
    if [ "$component" = "astakos" ]; then
32
        runtest $ASTAKOS_APPS
36
        runTest $ASTAKOS_APPS
33 37
    elif [ "$component" = "cyclades" ]; then
34 38
        export SYNNEFO_EXCLUDE_PACKAGES="snf-pithos-app"
35
        runtest $CYCLADES_APPS
39
        runTest $CYCLADES_APPS
36 40
    elif [ "$component" = "pithos" ]; then
37 41
        export SYNNEFO_EXCLUDE_PACKAGES="snf-cyclades-app"
38
        runtest $PITHOS_APPS
42
        runTest $PITHOS_APPS
43
    elif [ "$component" = "astakosclient" ]; then
44
        TEST="nosetests astakosclient"
45
        runCoverage "$TEST"
39 46
    fi
40 47
done
b/ci/utils.py
856 856
        cmd = """
857 857
        pip install -U mock
858 858
        pip install -U factory_boy
859
        pip install -U nose
859 860
        """
860 861
        _run(cmd, False)
861 862

  

Also available in: Unified diff