apisix/.travis.yml
YuanSheng Wang 3eb2f3ea95
travis: skipped the test case when install test::nginx library. (#117)
* travis: skipped the test case when install `test::nginx` library.

* travis: removed the cache dir.
2019-06-17 15:15:22 +08:00

43 lines
1.0 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
before_install:
- sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
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
- sudo luarocks install apisix-*.rockspec --only-deps
- 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