forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 1014 Bytes
/
.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
29
30
31
32
33
34
35
36
37
38
language: erlang
env:
- LUA=""
services:
- cassandra
branches:
only:
- master
before_install:
- sudo apt-get update
- sudo apt-get install libreadline-dev libncurses5-dev libpcre3 libpcre3-dev libssl-dev perl make lua5.1 lua5.1-dev
- wget http://openresty.org/download/ngx_openresty-1.7.7.1.tar.gz
- tar xzf ngx_openresty-1.7.7.1.tar.gz
- cd ngx_openresty-1.7.7.1/
- ./configure
- make
- sudo make install
- cd ..
- export PATH=$PATH:/usr/local/openresty/nginx/sbin/
- wget http://luarocks.org/releases/luarocks-2.1.2.tar.gz
- tar xzf luarocks-2.1.2.tar.gz
- cd luarocks-2.1.2
- ./configure
- make build
- sudo make install
- cd ..
install:
- sudo apt-get install sqlite3 libsqlite3-dev
- sudo luarocks install lrexlib-pcre PCRE_LIBDIR=$(dirname `sudo find / -type f -name "libpcre.so*" -print -quit`)
- sudo luarocks install luasec OPENSSL_LIBDIR=$(dirname `sudo find / -type f -name "libssl.so*" -print -quit`)
- sudo make global
script: "make test-all"