Added sleep to Travis CI config (could not connect to database)

This commit is contained in:
Michael Mayer 2018-08-15 13:15:38 +02:00
parent fdbd53c7e0
commit 97b8eec9e9

View file

@ -1,13 +1,14 @@
sudo: required
services:
- docker
- docker
before_script:
- docker-compose -f docker-compose.travis.yml up --build -d
- sleep 15
- docker-compose exec photoprism /usr/local/go/bin/go run cmd/photoprism/photoprism.go migrate-db
script:
- docker-compose exec photoprism /usr/local/go/bin/go run cmd/photoprism/photoprism.go migrate-db
- docker-compose exec photoprism /usr/local/go/bin/go test
after_script: