Use grep and wait for mysql to come up properly (#305)

This commit is contained in:
jekkos
2016-02-03 10:49:20 +01:00
parent e598817287
commit 5c16c2a21a

View File

@@ -13,4 +13,4 @@ before_install:
- docker run -d jekkos/opensourcepos
script:
- docker exec -t -i $(docker ps | tail -n 1 | cut -d' ' -f1) /bin/sh -c "while ! curl http://localhost/index.php; do sleep 1; done; cd app && grunt mochaWebdriver:test"
- docker exec -t -i $(docker ps | tail -n 1 | cut -d' ' -f1) /bin/sh -c "while ! curl http://localhost/index.php | grep username; do sleep 1; done; cd app && grunt mochaWebdriver:test"