forked from mybuilder/kongfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
21 lines (21 loc) · 804 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sudo: required
services:
- docker
language: node_js
env:
global:
- TEST_INTEGRATION_KONG_HOST="127.0.0.1:8001"
- KONG_VERSION=0.12.1
matrix:
- EXPERIMENTAL_USE_LOCAL_STATE=0
- EXPERIMENTAL_USE_LOCAL_STATE=1
node_js:
- stable
- "8"
- "6"
before_install:
- docker run -d --name kong-database -e "POSTGRES_USER=kong" -e "POSTGRES_DB=kong" postgres:9.4
- sleep 5
- docker run --rm --link kong-database:kong-database -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-database" kong:$KONG_VERSION kong migrations up
- docker run -d --name kong --link kong-database:kong-database -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-database" -e "KONG_ADMIN_LISTEN=0.0.0.0:8001" -p 127.0.0.1:8001:8001 -p 127.0.0.1:8000:8000 kong:$KONG_VERSION
- sleep 5