2019-06-03 16:24:38 +08:00
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
|
|
|
|
2019-07-10 11:32:16 +08:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2019-11-01 13:18:31 +08:00
|
|
|
allow_failures:
|
|
|
|
- os: osx
|
|
|
|
|
2019-07-10 11:32:16 +08:00
|
|
|
include:
|
|
|
|
- os: linux
|
2019-11-01 22:35:36 +08:00
|
|
|
services:
|
2020-02-24 10:54:48 +08:00
|
|
|
- docker
|
2019-11-02 09:05:38 +08:00
|
|
|
env: OSNAME=linux_openresty
|
2019-07-10 11:32:16 +08:00
|
|
|
- os: osx
|
2019-11-02 09:05:38 +08:00
|
|
|
env: OSNAME=osx_openresty
|
2019-08-02 21:36:30 +08:00
|
|
|
if: type IN (push)
|
2019-07-10 11:32:16 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/Homebrew
|
|
|
|
- /usr/local/Homebrew
|
2019-11-02 09:05:38 +08:00
|
|
|
- os: linux
|
|
|
|
services:
|
2020-02-24 10:54:48 +08:00
|
|
|
- docker
|
2019-11-02 09:05:38 +08:00
|
|
|
env: OSNAME=linux_tengine
|
2020-01-22 16:19:01 +08:00
|
|
|
- os: linux
|
2020-03-15 20:21:48 +08:00
|
|
|
services:
|
|
|
|
- docker
|
2020-03-07 14:59:18 +08:00
|
|
|
env: OSNAME=linux_apisix_master_luarocks
|
|
|
|
- os: linux
|
2020-03-15 20:21:48 +08:00
|
|
|
services:
|
|
|
|
- docker
|
2020-03-07 14:59:18 +08:00
|
|
|
env: OSNAME=linux_apisix_current_luarocks
|
2019-07-10 11:32:16 +08:00
|
|
|
|
2019-07-12 11:11:24 +08:00
|
|
|
language: c
|
2019-07-10 11:32:16 +08:00
|
|
|
|
2019-06-03 16:24:38 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- cpanminus
|
|
|
|
- build-essential
|
|
|
|
- libncurses5-dev
|
|
|
|
- libreadline-dev
|
|
|
|
- libssl-dev
|
|
|
|
- perl
|
|
|
|
- etcd
|
|
|
|
- luarocks
|
2019-06-11 09:38:00 +08:00
|
|
|
- lua-check
|
2019-07-10 11:32:16 +08:00
|
|
|
homebrew:
|
|
|
|
update: true
|
2019-06-03 16:24:38 +08:00
|
|
|
|
2019-08-30 10:40:20 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
2019-11-01 13:18:31 +08:00
|
|
|
- build-cache
|
2019-08-30 10:40:20 +08:00
|
|
|
|
2019-07-10 11:32:16 +08:00
|
|
|
before_cache:
|
|
|
|
- brew cleanup
|
2019-06-03 16:24:38 +08:00
|
|
|
|
2019-06-17 15:15:22 +08:00
|
|
|
before_install:
|
2019-11-02 09:05:38 +08:00
|
|
|
- echo $OSNAME
|
|
|
|
- $PWD/.travis/${OSNAME}_runner.sh before_install
|
2019-06-17 15:15:22 +08:00
|
|
|
|
2019-06-03 16:24:38 +08:00
|
|
|
install:
|
2019-11-02 09:05:38 +08:00
|
|
|
- $PWD/.travis/${OSNAME}_runner.sh do_install
|
2019-06-03 16:24:38 +08:00
|
|
|
|
|
|
|
script:
|
2019-11-02 09:05:38 +08:00
|
|
|
- $PWD/.travis/${OSNAME}_runner.sh script
|
2019-07-03 15:44:24 +08:00
|
|
|
|
|
|
|
after_success:
|
2019-11-02 09:05:38 +08:00
|
|
|
- $PWD/.travis/${OSNAME}_runner.sh after_success
|