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: - sudo luarocks install lua-resty-http - sudo luarocks install lua-typeof - 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 - 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 - curl http://127.0.0.1:2379/v2/keys/apisix/routes -X PUT -d dir=true - curl http://127.0.0.1:2379/v2/keys/apisix/upstreams -X PUT -d dir=true - curl http://127.0.0.1:2379/v2/keys/apisix/services -X PUT -d dir=true - make test