forked from openresty/lua-resty-balancer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (46 loc) · 1.14 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
42
43
44
45
46
47
48
49
50
51
52
os: linux
dist: trusty
sudo: required
addons:
apt:
packages:
- axel
- build-essential
- cpanminus
- libgd-dev
- liblist-moreutils-perl
- libncurses5-dev
- libpcre3-dev
- libreadline-dev
- libssl-dev
- libtest-base-perl
- libtest-longstring-perl
- libtext-diff-perl
- liburi-perl
- libwww-perl
- perl
cache:
directories:
- download-cache
env:
global:
- JOBS=2
- OPENRESTY_PREFIX=/usr/local/openresty
- OPENRESTY_VER=1.11.2.3
install:
- if [ ! -f download-cache/openresty-$OPENRESTY_VER.tar.gz ]; then
wget -P download-cache https://openresty.org/download/openresty-$OPENRESTY_VER.tar.gz;
fi
- git clone https://github.com/openresty/test-nginx.git ../test-nginx
script:
- tar xzf download-cache/openresty-$OPENRESTY_VER.tar.gz &&
cd openresty-$OPENRESTY_VER
- ./configure --prefix=$OPENRESTY_PREFIX -j$JOBS
> build.log 2>&1 || (cat build.log && exit 1)
- make -j$JOBS > build.log 2>&1 ||
(cat build.log && exit 1)
- sudo make install > build.log 2>&1 ||
(cat build.log && exit 1)
- cd ..
- export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
- make test jobs=$JOBS