summaryrefslogtreecommitdiff
path: root/tools/docker/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/docker/entrypoint.sh')
-rwxr-xr-xtools/docker/entrypoint.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh
index 4a89978..997b876 100755
--- a/tools/docker/entrypoint.sh
+++ b/tools/docker/entrypoint.sh
@@ -106,26 +106,20 @@ elif ! test_database; then
reset_data
fi
+# TODO(stephenfin): Deprecated the --test, --tox, --quick-test and --quick-tox
+# flags in a future release
if [ $# -eq 0 ]; then
# we probably ran with --reset and nothing else
# just exit cleanly
exit 0
elif [ "$1" == "--shell" ]; then
exec bash
-elif [ "$1" == "--quick-test" ]; then
+elif [ "$1" == "--test" ] || [ "$1" == "--quick-test" ]; then
shift
- export PW_SKIP_BROWSER_TESTS=yes
python3 manage.py test $@
-elif [ "$1" == "--test" ]; then
+elif [ "$1" == "--tox" ] || [ "$1" == "--quick-tox" ]; then
shift
- xvfb-run --server-args='-screen 0, 1024x768x16' python3 manage.py test $@
-elif [ "$1" == "--quick-tox" ]; then
- shift
- export PW_SKIP_BROWSER_TESTS=yes
tox $@
-elif [ "$1" == "--tox" ]; then
- shift
- xvfb-run --server-args='-screen 0, 1024x768x16' tox $@
else # run whatever CMD is set to
$@
fi