File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ sudo: required
22
33language : php
44
5- services :
6- - docker
7-
85php :
96 - 5.6
107 - 7.0
@@ -22,10 +19,13 @@ before_script:
2219 - composer update
2320 - composer --prefer-source --dev install
2421 # Install Kong env (cf: https://getkong.org/install/docker)
22+ - sudo /etc/init.d/postgresql stop
2523 - docker run -d --name kong-database -p 5432 -e "POSTGRES_USER=kong" -e "POSTGRES_DB=kong" postgres:9.4
2624 - docker run -it --rm --link kong-database:kong-database -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-database" -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" kong:latest kong migrations up
2725 - docker run -d --name kong --link kong-database:kong-database -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-database" -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" -e "KONG_PROXY_ACCESS_LOG=/dev/stdout" -e "KONG_ADMIN_ACCESS_LOG=/dev/stdout" -e "KONG_PROXY_ERROR_LOG=/dev/stderr" -e "KONG_ADMIN_ERROR_LOG=/dev/stderr" -p 8000:8000 -p 8443:8443 -p 8001:8001 -p 8444:8444 kong:latest
26+ # Wait for Kong available
27+ - sleep 10
2828
2929script :
30- - curl -v http://localhost :8001/
30+ - curl -v http://127.0.0.1 :8001/
3131# - ./vendor/bin/atoum -d Tests/ -ncc
You can’t perform that action at this time.
0 commit comments