forked from APItools/middleware
/
.travis.yml
executable file
·28 lines (28 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: ruby
rvm:
- 2.1.2
cache:
bundler: true
apt: true
directories:
- /usr/local
env:
global:
- LUAROCKS_VERSION=2.2.0
- OPENRESTY_VERSION=1.7.2.1
- OPENRESTY=/usr/local/openresty
before_install:
- sudo apt-get -y install make build-essential libpcre3-dev libssl-dev libexpat1-dev unzip
install:
- wget -qO- http://openresty.org/download/ngx_openresty-$OPENRESTY_VERSION.tar.gz | tar xvz -C /tmp/
- wget -qO- http://luarocks.org/releases/luarocks-$LUAROCKS_VERSION.tar.gz | tar xvz -C /tmp/
- cd /tmp/ngx_openresty-$OPENRESTY_VERSION && ./configure --prefix=$OPENRESTY && sudo make install
- sudo ln -sf $OPENRESTY/luajit/bin/luajit-2.1.0-alpha $OPENRESTY/luajit/bin/lua
- sudo ln -sf $OPENRESTY/luajit/bin/lua /usr/local/bin/lua
- cd /tmp/luarocks-$LUAROCKS_VERSION
- ./configure --with-lua=$OPENRESTY/luajit --with-lua-include=$OPENRESTY/luajit/include/luajit-2.1 --with-lua-lib=$OPENRESTY/lualib
- make build && sudo make install
- cd $TRAVIS_BUILD_DIR
- bundle install
- make dependencies
script: make