apisix/.travis.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

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
- cmake
2019-06-11 09:38:00 +08:00
- lua-check
2019-06-03 16:24:38 +08:00
env:
global:
- OPENRESTY_PREFIX=/usr/local/openresty-debug
2019-06-03 16:24:38 +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
- sudo apt-get install openresty-debug
- 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
- sudo apisix init_etcd
- export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$PATH
- make check || exit 1
- prove -Itest-nginx/lib -r t