apisix/.travis.yml

42 lines
988 B
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
cache:
directories:
- download-cache
env:
global:
- OPENRESTY_PREFIX=/usr/local/openresty
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
2019-06-03 16:24:38 +08:00
- git clone https://github.com/openresty/test-nginx.git test-nginx
script:
- cd test-nginx && (sudo cpanm . > build.log 2>&1 || (cat build.log && exit 1)) && cd ..
- export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
- sudo service etcd start
- sudo apisix init_etcd
2019-06-03 16:24:38 +08:00
- make test