2019-06-03 16:24:38 +08:00
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
|
|
|
|
2019-07-10 11:32:16 +08:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
- os: osx
|
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-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
|
|
|
|
- libpcre3-dev
|
|
|
|
- libreadline-dev
|
|
|
|
- libssl-dev
|
|
|
|
- perl
|
|
|
|
- etcd
|
|
|
|
- luarocks
|
2019-06-10 23:41:43 +08:00
|
|
|
- cmake
|
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-10-08 13:15:48 +08:00
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
|
2019-08-30 10:40:20 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- build-cache
|
|
|
|
|
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-08-04 01:49:49 +08:00
|
|
|
- echo $TRAVIS_OS_NAME
|
2019-07-10 22:23:27 +08:00
|
|
|
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh before_install
|
2019-06-17 15:15:22 +08:00
|
|
|
|
2019-06-03 16:24:38 +08:00
|
|
|
install:
|
2019-07-10 22:23:27 +08:00
|
|
|
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh do_install
|
2019-06-03 16:24:38 +08:00
|
|
|
|
|
|
|
script:
|
2019-07-10 22:23:27 +08:00
|
|
|
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh script
|
2019-07-03 15:44:24 +08:00
|
|
|
|
|
|
|
after_success:
|
2019-07-12 10:06:42 +08:00
|
|
|
- $PWD/.travis/${TRAVIS_OS_NAME}_runner.sh after_success
|