mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-26 10:52:09 +08:00
25 lines
731 B
Bash
Executable file
25 lines
731 B
Bash
Executable file
#!/bin/sh
|
|
# Setup test executor
|
|
|
|
. ci/lib
|
|
|
|
INSTALL_DIR=`mktemp -d`
|
|
|
|
trap "rm -rf $INSTALL_DIR" EXIT
|
|
|
|
# Do setup.py install
|
|
run_coverage ./setup.py install --root="$INSTALL_DIR"
|
|
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 collectstatic --noinput
|
|
check
|
|
|
|
PYTHONPATH=$INSTALLED_DIR $BIN_DIR/weblate test weblate.trans weblate.lang weblate.accounts weblate.api weblate.billing weblate.utils weblate.gitexport weblate.screenshots weblate.auth weblate.legal weblate.checks weblate.addons weblate.formats weblate.wladmin weblate
|
|
check
|