forked from rstudio/redx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.01 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
29
30
31
32
33
34
35
36
37
38
39
40
41
language: erlang
env:
- LUA="luajit"
services:
- redis-server
branches:
only:
- master
install:
- sudo apt-get update
- sudo apt-get install luajit luarocks
- sudo apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make
- sudo luarocks install luabitop 1.0.2-2
- sudo luarocks install luasec 0.5-2 OPENSSL_DIR=/usr OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
- sudo luarocks install luafilesystem 1.6.2-2
- sudo luarocks install busted 2.0.rc12-1
- sudo luarocks install lua-cjson 2.1.0-1
- sudo luarocks install lapis 1.0.4-1
- sudo luarocks install moonscript 0.2.6-1
- sudo luarocks install inspect 2.0-1
- wget http:https://openresty.org/download/ngx_openresty-1.7.2.1.tar.gz
- tar xzvf ngx_openresty-1.7.2.1.tar.gz
- cd ngx_openresty-1.7.2.1/
- ./configure --with-luajit
- make
- sudo make install
- cd -
- cp nginx.conf.example nginx.conf
before_script:
- "lapis server --trace &"
script:
- "busted lua/spec"
after_script:
- "sudo killall nginx"