Skip to content

Commit c711372

Browse files
committed
Ensure database is up before migrations
1 parent 4285fda commit c711372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ script:
3131
- docker build --target=builder --tag=doccano-test .
3232
- >
3333
if [[ "${DATABASE}" != "sqlite" ]]; then
34-
docker run --network doccano -e DATABASE_URL="${DATABASE_URL}" -it doccano-test sh -c 'app/manage.py migrate && app/manage.py test api.tests server.tests'
34+
docker run --network doccano -e DATABASE_URL="${DATABASE_URL}" -it doccano-test sh -c 'app/manage.py wait_for_db && app/manage.py migrate && app/manage.py test api.tests server.tests'
3535
fi
3636
3737
before_deploy:

0 commit comments

Comments
 (0)