apisix/.travis.yml
YuanSheng Wang b835bb79f1
travis: supports installing APISIX using the current branch and running (#1212)
* travis: supports installing APISIX using the current branch and running
    test cases separately in CI.

* bugfix: install apisix from local folder.

* travis: install `master` version apisix by luarocks and run e2e test.
2020-03-07 14:59:18 +08:00

69 lines
1.3 KiB
YAML

dist: xenial
sudo: required
matrix:
fast_finish: true
allow_failures:
- os: osx
- env: OSNAME=linux_apisix_master_luarocks
include:
- os: linux
services:
- docker
env: OSNAME=linux_openresty
- os: osx
env: OSNAME=osx_openresty
if: type IN (push)
cache:
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- os: linux
services:
- docker
env: OSNAME=linux_tengine
- os: linux
env: OSNAME=linux_apisix_master_luarocks
- os: linux
env: OSNAME=linux_apisix_current_luarocks
language: c
addons:
apt:
packages:
- cpanminus
- build-essential
- libncurses5-dev
- libreadline-dev
- libssl-dev
- perl
- etcd
- luarocks
- lua-check
homebrew:
update: true
cache:
directories:
- build-cache
before_cache:
- brew cleanup
before_install:
- docker pull redis:3.0-alpine
- docker run --rm -itd -p 6379:6379 --name apisix_redis redis:3.0-alpine
- 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