add integration test in travis
This commit is contained in:
committed by
Dana Van Aken
parent
576bbb69bf
commit
0f60e95da4
18
docker/start-test.sh
Executable file
18
docker/start-test.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user