apisix/.travis.yml
2019-10-23 12:59:22 +08:00

54 lines
875 B
YAML

dist: xenial
sudo: required
matrix:
fast_finish: true
include:
- os: linux
- os: osx
if: type IN (push)
cache:
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
language: c
addons:
apt:
packages:
- cpanminus
- build-essential
- libncurses5-dev
- libreadline-dev
- libssl-dev
- perl
- etcd
- luarocks
- lua-check
homebrew:
update: true
services:
- redis-server
cache:
directories:
- build-cache
before_cache:
- brew cleanup
before_install:
- echo $TRAVIS_OS_NAME
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh before_install
install:
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh do_install
script:
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh script
after_success:
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh after_success