forked from openresty/resty-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 969 Bytes
/
.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
sudo: required
dist: trusty
os: linux
language: c
compiler:
- gcc
env:
global:
- LUAJIT_LIB=/usr/lib64/libluajit-5.1.so
- LUAJIT_INC=/usr/include/luajit-2.0
- LUA_INCLUDE_DIR=/usr/include/luajit-2.0
- LUA_CMODULE_DIR=/lib
matrix:
- NGINX_VERSION=1.9.15
before_install:
- sudo apt-get install -y axel cpanminus libluajit-5.1-dev
- sudo cpanm --notest Test::Base IPC::Run
install:
- git clone https://github.com/openresty/openresty.git ../openresty
- git clone https://github.com/openresty/nginx-devel-utils.git
- git clone https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module
- git clone https://github.com/openresty/no-pool-nginx.git ../no-pool-nginx
script:
- export PATH=$PATH:`pwd`/nginx-devel-utils
- ngx-build $NGINX_VERSION --with-ipv6 --with-http_realip_module --with-http_ssl_module --add-module=../lua-nginx-module --with-debug
- export PATH=$PATH:`pwd`/work/nginx/sbin
- prove -lv t/resty