Skip to content

Commit 8106946

Browse files
author
Sebastien Malot
committed
add debug
1 parent b7091dc commit 8106946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ sudo: required
22

33
language: php
44

5-
services:
6-
- docker
7-
85
php:
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

2929
script:
30-
- curl -v http://localhost:8001/
30+
- curl -v http://127.0.0.1:8001/
3131
# - ./vendor/bin/atoum -d Tests/ -ncc

0 commit comments

Comments
 (0)