-
Notifications
You must be signed in to change notification settings - Fork 390
/
Copy path.travis.yml
39 lines (30 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: node_js
os:
- linux
addons:
chrome: stable
node_js:
- "8"
- "7"
- "6"
env:
- KONG_VERSION=0.9 POSTGRES_VERSION=9.4 MIGRATIONS_VERB=up
- KONG_VERSION=0.10 POSTGRES_VERSION=9.4 MIGRATIONS_VERB=up
- KONG_VERSION=0.11 POSTGRES_VERSION=9.4 MIGRATIONS_VERB=up
- KONG_VERSION=0.12 POSTGRES_VERSION=9.4 MIGRATIONS_VERB=up
- KONG_VERSION=0.13 POSTGRES_VERSION=9.4 MIGRATIONS_VERB=up
- KONG_VERSION=0.14 POSTGRES_VERSION=9.5 MIGRATIONS_VERB=up
- KONG_VERSION=0.15 POSTGRES_VERSION=9.5 MIGRATIONS_VERB=bootstrap
- KONG_VERSION=1.0 POSTGRES_VERSION=9.5 MIGRATIONS_VERB=bootstrap
services:
- docker
before_install:
- docker run -d --name kong-database -e "POSTGRES_USER=kong" -e "POSTGRES_DB=kong" postgres:${POSTGRES_VERSION}-alpine
- 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 $MIGRATIONS_VERB
- 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 8001:8001 -p8000:8000 kong:$KONG_VERSION
- sleep 5
install:
- travis_retry npm install
- travis_retry npm run build
script: travis_retry npm test