forked from Kong/kong-plugin-zipkin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
71 lines (61 loc) · 2.02 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
71
language: generic
dist: trusty
sudo: required
branches:
only:
- master
services:
- redis-server
addons:
postgresql: "9.5"
apt:
packages:
- net-tools
- libpcre3-dev
- build-essential
services:
- redis
- docker
env:
global:
- PLUGIN_NAME=zipkin
- KONG_REPOSITORY=kong
- KONG_TAG=master
- KONG_PLUGINS=bundled
- KONG_TEST_PLUGINS=$KONG_PLUGINS
- LUAROCKS=3.2.1
- OPENSSL=1.1.1d
- CASSANDRA_BASE=2.2.12
- CASSANDRA_LATEST=3.9
- OPENRESTY=1.15.8.2
- DOWNLOAD_CACHE=$HOME/download-cache
- INSTALL_CACHE=$HOME/install-cache
- BUSTED_ARGS="-o gtest -v --exclude-tags=flaky,ipv6"
- TEST_FILE_PATH=$TRAVIS_BUILD_DIR/spec
matrix:
# Some of these might be commented off because they don't apply for the current plugin.
# If a plugin does not extend the pdk, the pdk test suite doesn't need to be run.
# If a plugin is not compatible with dbless, then the dbless test suite doesn't need to be run.
# If a plugin doesn't monkeypatch Kong's internal entities, it should not need to run integration tests
# - TEST_SUITE=pdk
# - KONG_TEST_DATABASE=postgres TEST_SUITE=integration
# - KONG_TEST_DATABASE=cassandra CASSANDRA=$CASSANDRA_BASE TEST_SUITE=integration
# - KONG_TEST_DATABASE=cassandra CASSANDRA=$CASSANDRA_LATEST TEST_SUITE=integration
# - KONG_TEST_DATABASE=off TEST_SUITE=dbless
- KONG_TEST_DATABASE=postgres TEST_SUITE=plugins
- KONG_TEST_DATABASE=cassandra CASSANDRA=$CASSANDRA_BASE TEST_SUITE=plugins
- KONG_TEST_DATABASE=cassandra CASSANDRA=$CASSANDRA_LATEST TEST_SUITE=plugins
install:
- git clone --single-branch https://$GITHUB_TOKEN:@github.com/Kong/kong-ci.git ../kong-ci
- source ../kong-ci/setup_plugin_env.sh
- docker run -d --name zipkin -p 9411:9411 openzipkin/zipkin && while ! curl localhost:9411/health; do sleep 1; done
script:
- eval $LUACHECK_CMD
- eval $BUSTED_CMD
notifications:
email: false
cache:
directories:
- $DOWNLOAD_CACHE
- $INSTALL_CACHE
- $HOME/.ccm/repository