weblate/ci/run-setup
Michal Čihař 2d1c9d80a5 Run tests verbosely when testing setup
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-22 09:11:28 +02:00

27 lines
606 B
Bash
Executable file
Vendored

#!/bin/sh
# Setup test executor
. ci/lib
INSTALL_DIR=`mktemp -d`
trap "rm -rf $INSTALL_DIR" EXIT
run_coverage ./setup.py build
check
run_coverage ./setup.py install --root="$INSTALL_DIR"
check
run_coverage ./setup.py sdist
check
INSTALLED_DIR=`find $INSTALL_DIR -name '*-packages' -type d`
BIN_DIR=`find $INSTALL_DIR -name 'bin' -type d`
diff -ruNqp -x '*.swp' -x '*.pyc' weblate $INSTALLED_DIR/weblate
check
cd $INSTALL_DIR
PYTHONPATH=$INSTALLED_DIR $BIN_DIR/weblate test -v 2 --settings weblate.settings_test weblate.trans weblate.lang weblate.accounts weblate.api weblate.billing weblate
check