weblate/ci/run-selenium
Michal Čihař 353bca718f Collect static files for Selenium tests
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-08-28 15:03:25 +02:00

20 lines
392 B
Bash
Executable file
Vendored

#!/bin/sh
# Selenium testsuite executor
. ci/lib
run_coverage ./manage.py collectstatic --noinput
check
export DO_SELENIUM=1
# We retry Selenium tests to workaroud occasional failures
# in connection to SauceLabs
RETRIES=3
RET=1
while [ $RET -ne 0 -a $RETRIES -gt 0 ] ; do
run_coverage ./manage.py test -v 2 -p test_selenium.py
RET=$?
RETRIES=$(($RETRIES - 1))
done
exit $RET