apisix/.travis.yml
YuanSheng Wang 7440192f8f
bugfix(CI): avoid to install APISIX to deps folder, that is a bug for older luarocks (#1471)
If the Luarocks version is lower than "v2.4.3", it does not support the "--only-deps" parameter. Even if we set the "--only-deps" parameter, no error message will be given during runtime.

We only wanted to install the dependencies in the deps directory, but the APISIX was also installed so that the test case might load the wrong version of the source code.
2020-04-20 09:09:14 +08:00

63 lines
1.1 KiB
YAML

dist: xenial
sudo: required
matrix:
include:
- os: linux
services:
- docker
env: OSNAME=linux_openresty
- os: osx
env: OSNAME=osx_openresty
cache:
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- os: linux
services:
- docker
env: OSNAME=linux_tengine
- os: linux
services:
- docker
env: OSNAME=linux_apisix_master_luarocks
- os: linux
services:
- docker
env: OSNAME=linux_apisix_current_luarocks
language: c
addons:
apt:
packages:
- cpanminus
- build-essential
- libncurses5-dev
- libreadline-dev
- libssl-dev
- perl
- etcd
homebrew:
update: true
cache:
directories:
- build-cache
before_cache:
- brew cleanup
before_install:
- echo $OSNAME
- $PWD/.travis/${OSNAME}_runner.sh before_install
install:
- $PWD/.travis/${OSNAME}_runner.sh do_install
script:
- $PWD/.travis/${OSNAME}_runner.sh script
after_success:
- $PWD/.travis/${OSNAME}_runner.sh after_success