kitsune/bin/run-unit-tests.sh

17 строки
317 B
Bash
Executable File

#!/bin/bash
# set test environment variables
source bin/test-env.sh
set -ex
# wait on database in DATABASE_URL to be ready
urlwait
# wait for elasticsearch to be ready
urlwait http://elasticsearch:9200 60
./manage.py es_init --migrate-writes --migrate-reads
./manage.py test --noinput --force-color --timing $@