2019-06-03 16:24:38 +08:00
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- cpanminus
|
|
|
|
- build-essential
|
|
|
|
- libncurses5-dev
|
|
|
|
- libpcre3-dev
|
|
|
|
- libreadline-dev
|
|
|
|
- libssl-dev
|
|
|
|
- perl
|
|
|
|
- etcd
|
|
|
|
- luarocks
|
2019-06-10 23:41:43 +08:00
|
|
|
- cmake
|
2019-06-11 09:38:00 +08:00
|
|
|
- lua-check
|
2019-06-03 16:24:38 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2019-06-25 06:36:52 +08:00
|
|
|
- OPENRESTY_PREFIX=/usr/local/openresty-debug
|
2019-06-03 16:24:38 +08:00
|
|
|
|
2019-06-17 15:15:22 +08:00
|
|
|
before_install:
|
|
|
|
- sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
|
|
|
|
|
2019-06-03 16:24:38 +08:00
|
|
|
install:
|
|
|
|
- wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
|
|
|
|
- sudo apt-get -y install software-properties-common
|
|
|
|
- sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
|
|
|
|
- sudo apt-get update
|
2019-06-24 22:09:51 +08:00
|
|
|
- sudo apt-get install openresty-debug
|
2019-06-10 16:32:24 +08:00
|
|
|
- sudo luarocks install apisix-*.rockspec --only-deps
|
2019-06-03 16:24:38 +08:00
|
|
|
- git clone https://github.com/openresty/test-nginx.git test-nginx
|
|
|
|
|
|
|
|
script:
|
|
|
|
- sudo service etcd start
|
2019-06-10 11:42:14 +08:00
|
|
|
- sudo apisix init_etcd
|
2019-06-16 09:36:22 +08:00
|
|
|
- export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$PATH
|
2019-06-17 15:05:19 +08:00
|
|
|
- make check || exit 1
|
2019-06-17 15:15:22 +08:00
|
|
|
- prove -Itest-nginx/lib -r t
|