-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
34 lines (28 loc) · 1.18 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
# Travis-CI for koreader-sync-server
# see travis-ci.org for details
before_install:
- sudo apt-get update
install:
# install openresty
- sudo apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev
- wget http://openresty.org/download/ngx_openresty-1.7.10.1.tar.gz
- tar zxvf ngx_openresty-1.7.10.1.tar.gz
- cd ngx_openresty-1.7.10.1/
- ./configure --prefix=/opt/openresty && make && sudo make install && cd ..
- export PATH=/opt/openresty/nginx/sbin:$PATH
- sudo apt-get install openssl
- sudo mkdir -p /etc/nginx/ssl
- sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/"
- sudo apt-get install luarocks redis-server
# libssl.* are in /usr/lib/x86_64-linux-gnu on Travis Ubuntu precise
- sudo luarocks install luasec 0.5-2 OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
- git clone https://github.com/ostinelli/gin
# patch gin for https support
- cd gin && patch -N -p1 < ../gin.patch
- sudo luarocks make && cd ..
- sudo luarocks install redis-lua
- sudo luarocks install busted
script:
- redis-server &
- sleep 3
- busted