forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.36 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
sudo: false
notifications:
email: false
addons:
apt:
packages:
- sed
- net-tools
- uuid-dev
- libpcre3-dev
- build-essential
env:
global:
- LUA=luajit-2.1
- CASSANDRA_VERSION=2.1.9
- LUAROCKS_VERSION=2.2.2
- OPENSSL_VERSION=1.0.2e
- OPENRESTY_VERSION=1.9.3.1
- LUAJIT_DIR=$HOME/luajit
- LUAROCKS_DIR=$HOME/luarocks
- OPENRESTY_DIR=$HOME/openresty
- CASSANDRA_HOSTS=127.0.0.1
before_install:
- bash .ci/setup_lua.sh
- bash .ci/setup_openresty.sh
- bash .ci/setup_cassandra.sh
- export PATH="$LUAJIT_DIR/bin:$LUAROCKS_DIR/bin:$OPENRESTY_DIR/nginx/sbin:$PATH"
- export LUA_PATH="./?.lua;$LUAROCKS_DIR/share/lua/5.1/?.lua;$LUAROCKS_DIR/share/lua/5.1/?/init.lua;$LUAROCKS_DIR/lib/lua/5.1/?.lua;$LUA_PATH"
- export LUA_CPATH="./?.so;$LUAROCKS_DIR/lib/lua/5.1/?.so;$LUA_CPATH"
install:
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
- luarocks install luacheck
- luarocks make kong-*.rockspec
- "kong config -c kong.yml -e TEST"
- 'sed -i "2 i\dns_resolver: server" kong_TEST.yml'
script:
- make lint
- "busted --exclude-tags=ci -o spec/busted-print.lua --coverage spec/"
after_success:
- "luacov-coveralls -i kong"
cache:
apt: true
pip: true
directories:
- $LUAJIT_DIR
- $LUAROCKS_DIR
- $OPENRESTY_DIR
- $HOME/.ccm/repository