mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 17:01:20 +08:00
764280f5ff
* CLI: added default value for `node ssl listen` and allowed to run without `http_stub_status_module`. * travis: fixed the wrong argument when calling CLI. removed the `sudo` when run the CLI tool. added logs folder to `apisix` project.
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
os: linux
|
|
dist: xenial
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- cpanminus
|
|
- build-essential
|
|
- libncurses5-dev
|
|
- libpcre3-dev
|
|
- libreadline-dev
|
|
- libssl-dev
|
|
- perl
|
|
- etcd
|
|
- luarocks
|
|
- cmake
|
|
- lua-check
|
|
|
|
env:
|
|
global:
|
|
- OPENRESTY_PREFIX=/usr/local/openresty-debug
|
|
|
|
before_install:
|
|
- sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
|
|
- sudo luarocks install luacov-coveralls
|
|
|
|
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
|
|
- git clone https://github.com/openresty/test-nginx.git test-nginx
|
|
|
|
script:
|
|
- export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
|
|
- sudo service etcd start
|
|
- ./bin/apisix help
|
|
- ./bin/apisix init
|
|
- ./bin/apisix init_etcd
|
|
- ./bin/apisix start
|
|
- mkdir -p logs
|
|
- sleep 1
|
|
- ./bin/apisix stop
|
|
- sleep 1
|
|
- make check || exit 1
|
|
- APISIX_ENABLE_LUACOV=1 prove -Itest-nginx/lib -r t
|
|
|
|
after_success:
|
|
- luacov-coveralls
|