File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 8484 sudo apt-get -q update &&
8585 sudo apt-cache policy docker-ce &&
8686 sudo apt-get -qy install docker-ce
87- - run : sudo apt-get -qy install redis-server
87+ - run : sudo apt-get -qy install redis-server curl
8888 - checkout
8989 - run :
9090 name : validate composer.json
@@ -109,6 +109,13 @@ jobs:
109109 name : start Consul
110110 command : ./consul agent -dev
111111 background : true
112+ - run :
113+ name : wait on Consul
114+ command : |
115+ until $(curl --output /dev/null --silent --fail --request PUT --data 'test' http://localhost:8500/v1/kv/initchecker); do
116+ echo 'still waiting on Consul...'; sleep 2;
117+ done
118+ timeout : 50
112119 - run :
113120 name : run tests
114121 command : vendor/bin/phpunit --log-junit ~/phpunit/junit.xml --coverage-text tests
You can’t perform that action at this time.
0 commit comments