forked from Kong/kong-plugin-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (58 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
dist: trusty
sudo: required
language: java
jdk:
- oraclejdk8
notifications:
email: false
services:
- redis-server
addons:
postgresql: "9.5"
apt:
packages:
- net-tools
- libpcre3-dev
- build-essential
services:
- redis
- docker
env:
global:
- LUAROCKS=2.4.3
- OPENSSL=1.0.2n
- CASSANDRA_BASE=2.2.12
- CASSANDRA_LATEST=3.9
- OPENRESTY_BASE=1.13.6.2
- OPENRESTY_LATEST=1.13.6.2
- DOWNLOAD_CACHE=$HOME/download-cache
- INSTALL_CACHE=$HOME/install-cache
- BUSTED_ARGS="-o gtest -v --exclude-tags=flaky,ipv6"
- PLUGIN_NAME=prometheus
- KONG_TEST_PLUGINS=bundled,$PLUGIN_NAME
- KONG_PLUGINS=bundled,$PLUGIN_NAME
matrix:
- OPENRESTY=$OPENRESTY_BASE
CASSANDRA=$CASSANDRA_BASE
- OPENRESTY=$OPENRESTY_LATEST
CASSANDRA=$CASSANDRA_LATEST
before_install:
- git clone https://$GITHUB_TOKEN:@github.com/Kong/kong-ci.git
- source kong-ci/setup_env.sh
- git clone https://github.com/Kong/kong.git kong-ce
install:
- luarocks make
- cd kong-ce
- make dev
- cp -r ../spec/fixtures/prometheus spec/fixtures/
- createuser --createdb kong
- createdb -U kong kong_tests
script:
- bin/busted $BUSTED_ARGS ../spec
cache:
apt: true
pip: true
directories:
- $DOWNLOAD_CACHE
- $INSTALL_CACHE
- $HOME/.ccm/repository