#!/bin/sh
# Testsuite executor
set -e
set -x

./manage.py validate
if [ "$CI_DATABASE" = sqlite ] ; then 
    ./ci/migrate-testing
fi
./manage.py syncdb --noinput
./manage.py migrate --traceback
coverage run --source=. ./manage.py test -v 2 $CI_RUN_TESTS
