Browse Source

Ensure database is up before migrations

pull/303/head
Clemens Wolff 5 years ago
parent
commit
c711372a9b
1 changed files with 1 additions and 1 deletions
  1. 2
      .travis.yml

2
.travis.yml

@ -31,7 +31,7 @@ script:
- docker build --target=builder --tag=doccano-test .
- >
if [[ "${DATABASE}" != "sqlite" ]]; then
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'
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'
fi
before_deploy:

Loading…
Cancel
Save