ottertune/docker/start-test.sh

20 lines
382 B
Bash
Raw Normal View History

2019-10-26 19:25:28 -07:00
#!/bin/bash
# Wait for MySQL connection
/bin/bash wait-for-it.sh
## Needs a connection to a DB so migrations go here
python3 manage.py makemigrations website
python3 manage.py migrate
2020-02-06 12:48:31 -08:00
python3 manage.py stopcelery
2019-10-26 19:25:28 -07:00
python3 manage.py startcelery
python3 manage.py runserver 0.0.0.0:8000 &
# Wait for server
sleep 10
# Integration tests
cd /app/client/driver
fab integration_tests