-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (35 loc) · 1.28 KB
/
circle.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
machine:
services:
- cassandra
environment:
LUA: luajit-2.1
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
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install dnsmasq uuid-dev
- bash .ci/setup_lua.sh
- bash .ci/setup_openresty.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"
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
- luarocks install luacheck
- "curl -sSL https://s3.amazonaws.com/circle-downloads/wait-for-cassandra.sh | sh"
post:
- luarocks make kong-*.rockspec
- "kong config -c kong.yml -e TEST"
test:
override:
- make lint
- busted --exclude-tags=ci -o spec/busted-print.lua --coverage :
parallel: true
files:
- spec/**/*_spec.lua