Statistics
| Branch: | Tag: | Revision:

root / ci / tests.sh @ 34262911

History | View | Annotate | Download (360 Bytes)

1 078cb806 Christos Stavrakakis
#!/usr/bin/env sh
2 078cb806 Christos Stavrakakis
3 ca0a879c Christos Stavrakakis
set -e
4 ca0a879c Christos Stavrakakis
5 34262911 Kostas Papadimitriou
export SYNNEFO_SETTINGS_DIR='/tmp/snf-test-settings'
6 34262911 Kostas Papadimitriou
7 f9259573 Giorgos Korfiatis
APPS="api db logic plankton quotas vmapi im quotaholder_app helpdesk"
8 f9259573 Giorgos Korfiatis
TEST="$(which snf-manage) test $APPS --settings=synnefo.settings.test"
9 ca0a879c Christos Stavrakakis
10 ca0a879c Christos Stavrakakis
if coverage >/dev/null 2>&1; then
11 ca0a879c Christos Stavrakakis
  coverage run $TEST
12 ca0a879c Christos Stavrakakis
  coverage report --include=snf-*
13 ca0a879c Christos Stavrakakis
else
14 ca0a879c Christos Stavrakakis
  echo "coverage not installed"
15 ca0a879c Christos Stavrakakis
  $TEST
16 ca0a879c Christos Stavrakakis
fi